Skip to content

Commit

Permalink
Update trigger-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus committed Nov 12, 2024
1 parent 35b9b6a commit 0c3e539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/trigger-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
if: github.ref == 'refs/heads/main'
run: |
# shellcheck disable=SC2086
VERSION="$(\grep ${IMAGE}/Dockerfile -e '^FROM' | \head -n 1 | \sed -e 's/(-[A-Za-z0-9]+)?@.*$//; s/^.*://;')"
VERSION="$(\grep ${IMAGE}/Dockerfile -e '^FROM' | \head -n 1 | \sed -e 's/(-[A-Za-z][A-Za-z0-9]*)?@.*$//; s/^.*://;')"
if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+$ ]] ; then
\echo "VERSION=${VERSION}" >> "${GITHUB_ENV}"
fi
Expand Down

0 comments on commit 0c3e539

Please sign in to comment.