Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
frozenIceage authored Jul 18, 2024
1 parent b783823 commit 8822f1e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand All @@ -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 }}"

0 comments on commit 8822f1e

Please sign in to comment.