Skip to content

Commit

Permalink
Check versions match during release
Browse files Browse the repository at this point in the history
  • Loading branch information
Iain-S committed Aug 7, 2023
1 parent d8dec43 commit 5d9cf9b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check that tag and package versions match
run: |
PYPROJECT_VERSION=$(sed -n '3p' pyproject.toml | sed "s/version = //")
GITHUB_VERSION=${{ github.event.release.tag_name }}
if [[ "$PYPROJECT_VERSION" != "\"$GITHUB_VERSION\"" ]]
then
echo "pyproject.toml version $PYPROJECT_VERSION doesn't match GitHub version \"$GITHUB_VERSION\""
exit 1
fi
- name: Get release tag
id: current_release
run: |
Expand Down

0 comments on commit 5d9cf9b

Please sign in to comment.