Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
- only trigger on release publish
- run shell commands one after the other
  • Loading branch information
subhoghoshX committed Jul 28, 2024
1 parent 5165958 commit c21196c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/update-download-link.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Update Download Link
on: [release]
on:
release:
types: [published]
jobs:
update-downlad-link:
runs-on: ubuntu-latest
Expand All @@ -14,7 +16,9 @@ jobs:
- name: Sent PR
run:
git add .
run:
git commit -m "Update download link"
run:
gh pr create -B "update-link-for-$version" -H main --title 'Update download link' --body 'Created by Github action'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c21196c

Please sign in to comment.