Skip to content

Commit

Permalink
Update updateVersion.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolay authored Oct 23, 2024
1 parent 5a53046 commit 3ce2809
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/updateVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
repository_dispatch:
types: [update-version]

permissions:
contents: write

jobs:
update-config:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -43,11 +46,11 @@ jobs:
gh pr merge update-version-branch --admin --squash --delete-branch
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Trigger Deployment
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/dispatches \
-d '{"event_type":"deploy-to-pages"}'
-d '{"event_type":"deploy-to-pages"}'

0 comments on commit 3ce2809

Please sign in to comment.