Skip to content

Commit 6a67795

Browse files
author
Ferdia Soper Mac Cafraidh
committed
change check
1 parent 85365aa commit 6a67795

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

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

25-
- name: Check Library Version Matches Ref
25+
- name: Get Library Version
26+
id: get_version
2627
run: |
2728
version=`grep -o "v\d.\d.\d" learnosity_sdk/_version.py`
28-
if [ "$version" != "${{ github.ref_name }}" ]; then
29-
echo "$version doesn't match ${{ github.ref_name }}"
30-
exit 1
31-
fi
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
3234

3335
# - name: Set up Python
3436
# uses: actions/setup-python@v2

0 commit comments

Comments
 (0)