Skip to content

Commit

Permalink
remove support for specifying commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rikonor committed Dec 11, 2024
1 parent e3334d1 commit 1373d75
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/anonymization-backend-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@ on:
required: true
type: string

ref:
description: 'Commit to base the release on (defaults to `HEAD`)'
required: false
type: string

tag:
description: 'Tag for the release (defaults to `anonymization-backend-<COMMIT>`)'
description: 'Tag for the release (required format `anonymization-backend-*`)'
required: false
type: string

Expand Down Expand Up @@ -72,17 +67,9 @@ jobs:
- name: tag
run: |
REF='${{ inputs.ref }}'
if [[ -z "${REF}" ]]; then
REF='HEAD'
fi
COMMIT=$(git rev-parse ${REF})
git checkout ${COMMIT}
RELEASE_TAG='${{ inputs.tag }}'
if [[ -z "${RELEASE_TAG}" ]]; then
COMMIT_SHORT=$(git rev-parse --short ${COMMIT})
COMMIT_SHORT=$(git rev-parse --short HEAD)
RELEASE_TAG="${{ env.NAME }}-${COMMIT_SHORT}"
fi
Expand Down

0 comments on commit 1373d75

Please sign in to comment.