diff --git a/.github/workflows/dispatch-release-pypi.yml b/.github/workflows/dispatch-release-pypi.yml index 09e7728..e6f2b59 100644 --- a/.github/workflows/dispatch-release-pypi.yml +++ b/.github/workflows/dispatch-release-pypi.yml @@ -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