Skip to content

Commit

Permalink
Merge pull request #120 from szepeviktor/patch-1
Browse files Browse the repository at this point in the history
Add Check version job to release workflow
  • Loading branch information
BrianHenryIE authored Oct 13, 2024
2 parents fe59779 + dba777c commit 02247b4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ jobs:
- name: Test run strauss
run: php strauss.phar --version

- name: Check version
run: |
TAG_NAME="${{ github.event.release.tag_name }}"
CURRENT_VERSION="$(php strauss.phar --version | sed -e 's#^.\+ \([0-9.]\+\)$#\1#')"
if [ "${TAG_NAME#v}" != "${CURRENT_VERSION}" ]; then
echo "::error::Latest tag differs from current version"
exit 10
fi
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
with:
Expand Down

0 comments on commit 02247b4

Please sign in to comment.