Skip to content

Commit

Permalink
Add version check before release
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-stakewise committed Aug 21, 2024
1 parent 280ad5b commit 0c8d59c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,29 @@ on:
- "v*.*.*"

jobs:
checks:
name: Check version
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.10.5

- name: Install Poetry
uses: Gr1N/setup-poetry@v8
with:
poetry-version: "1.8.3"

- name: Check project version matches tag name
run: |
[ "`poetry version --short`" == "${{ github.ref_name }}" ]
build:
needs: checks
runs-on: ${{ matrix.OS }}
strategy:
matrix:
Expand Down

0 comments on commit 0c8d59c

Please sign in to comment.