Skip to content

Commit 4b04394

Browse files
author
Ferdia Soper Mac Cafraidh
committed
fix version check
1 parent 6a67795 commit 4b04394

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,11 @@ jobs:
2222
- name: Check out code
2323
uses: actions/checkout@v3
2424

25-
- name: Get Library Version
26-
id: get_version
25+
# grep exits with a non-zero exit code if a match is not found
26+
- name: Check Library Version matches ${{ github.ref_name }}
27+
id: check_version
2728
run: |
28-
version=`grep -o "v\d.\d.\d" learnosity_sdk/_version.py`
29-
echo "library_version=version" >> $GITHUB_OUTPUT
30-
31-
- name: Check Library Version ${{ steps.get_version.outputs.library_version }} Matches ${{ github.ref_name }}
32-
if: ${{ steps.get_version.outputs.library_version }} == ${{ github.ref_name }}
33-
run: exit 1
29+
grep "${{ github.ref_name }}" learnosity_sdk/_version.py
3430
3531
# - name: Set up Python
3632
# uses: actions/setup-python@v2

0 commit comments

Comments
 (0)