Skip to content

Commit

Permalink
only set version once with/without semantic versioning
Browse files Browse the repository at this point in the history
Signed-off-by: ehearneredhat <[email protected]>
  • Loading branch information
ehearneRedHat committed Aug 22, 2024
1 parent 949a333 commit f47c617
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,14 @@ jobs:
id: add-branch-tag
run: |
echo "IMG_TAGS=${GITHUB_REF_NAME/\//-} ${{ env.IMG_TAGS }}" >> $GITHUB_ENV
- name: Set Authorino version
id: authorino-version
run: |
echo "version=latest" >> $GITHUB_ENV
- name: Set Authorino git sha
id: authorino-git-sha
run: |
if [[ ${GITHUB_REF_NAME/\//-} =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-.+)?$ ]]; then
echo "version=${GITHUB_REF_NAME/\//-}" >> $GITHUB_ENV
else
echo "git_sha=${{ github.sha }}" >> $GITHUB_ENV
echo "version=latest" >> $GITHUB_ENV
fi
- name: Set Authorino Dirty
id: authorino-dirty
Expand Down

0 comments on commit f47c617

Please sign in to comment.