diff --git a/.github/workflows/updateVersion.yml b/.github/workflows/updateVersion.yml index 9be8d6322..78f9c7605 100644 --- a/.github/workflows/updateVersion.yml +++ b/.github/workflows/updateVersion.yml @@ -4,6 +4,9 @@ on: repository_dispatch: types: [update-version] +permissions: + contents: write + jobs: update-config: runs-on: ubuntu-latest @@ -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"}' \ No newline at end of file + -d '{"event_type":"deploy-to-pages"}'