Skip to content

Commit e79c855

Browse files
author
Ferdia Soper Mac Cafraidh
committed
[FEATURE] Check for package version to match git tag in release workflow
1 parent 0510bed commit e79c855

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/dispatch-release-pypi.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ jobs:
2121
- name: Check out code
2222
uses: actions/checkout@v3
2323

24+
# grep exits with a non-zero exit code if a match is not found
25+
- name: Check Library Version matches ${{ github.ref_name }}
26+
id: check_version
27+
run: |
28+
grep "${{ github.ref_name }}" learnosity_sdk/_version.py
29+
2430
- name: Set up Python
2531
uses: actions/setup-python@v2
2632
with:

0 commit comments

Comments
 (0)