diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 511cfed..3006f69 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -39,8 +39,8 @@ jobs: - name: Fetch tarball from PyPI id: fetch-tarball run: | - FILE_NAME=osc-tiny-$LATEST_TAG.tar.gz - FILE_URL="https://files.pythonhosted.org/packages/source/o/osc-tiny/osc_tiny-$LATEST_TAG.tar.gz -O $FILE_NAME" + FILE_NAME="osc-tiny-${{ env.LATEST_TAG }}.tar.gz" + FILE_URL="https://files.pythonhosted.org/packages/source/o/osc-tiny/osc_tiny-${{ env.LATEST_TAG }}.tar.gz -O $FILE_NAME" while [ ! -f "$FILE_NAME" ]; do echo "File not found. Downloading..." @@ -54,13 +54,13 @@ jobs: - name: Update version in spec file run: | - sed -i "s/^Version:.*/Version: $LATEST_TAG/" *.spec + sed -i "s/^Version:.*/Version: ${{ env.LATEST_TAG }}/" *.spec - name: Commit and push changes run: | - osc vc -m 'Update to version $LATEST_TAG' - osc commit -m "Update to version $LATEST_TAG" + osc vc -m 'Update to version ${{ env.LATEST_TAG }}' + osc commit -m "Update to version ${{ env.LATEST_TAG }}" - name: Submit changes to OBS run: | - osc submitrequest -m "Update package to version $LATEST_TAG" + osc submitrequest -m "Update package to version ${{ env.LATEST_TAG }}"