File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments