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