Skip to content

Commit

Permalink
set version to branch name if not semantic or main
Browse files Browse the repository at this point in the history
Signed-off-by: ehearneredhat <[email protected]>
  • Loading branch information
ehearneRedHat committed Aug 27, 2024
1 parent 8dd4382 commit a4a5886
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ jobs:
if [[ ${GITHUB_REF_NAME/\//-} =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-.+)?$ ]]; then
tag=${GITHUB_REF_NAME/\//-}
echo "version=${tag#v}" >> $GITHUB_ENV
else
else if [[ ${GITHUB_REF_NAME/\//-} == "main" ]]; then
echo "version=latest" >> $GITHUB_ENV
else
echo "version=${{ github.ref_name }}" >> $GITHUB_ENV
fi
echo "git_sha=${{ github.sha }}" >> $GITHUB_ENV
- name: Set Authorino Dirty
Expand Down

0 comments on commit a4a5886

Please sign in to comment.