Skip to content

Commit

Permalink
simplify check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferdia Soper Mac Cafraidh committed Sep 23, 2024
1 parent a02b3e1 commit c4a5a8f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/dispatch-release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@ jobs:
- name: Check out code
uses: actions/checkout@v3

- name: Get Library Version
id: get_version
# grep exists with a non-zero exit code if a match is not found
- name: Check Library Version matches ${{ github.ref_name }}
id: check_version
run: |
version=`grep -o "v\d.\d.\d" learnosity_sdk/_version.py`
# - name: Check Library Version ${{ steps.get_version.outputs.library_version }} Matches ${{ github.ref_name }}
# if: ${{ steps.get_version.outputs.library_version }} == ${{ github.ref_name }}
# run: exit 1
grep "${{ github.ref_name }}" learnosity_sdk/_version.py
# - name: Set up Python
# uses: actions/setup-python@v2
Expand Down

0 comments on commit c4a5a8f

Please sign in to comment.