diff --git a/.github/workflows/submodule-trigger-workflow.yml b/.github/workflows/submodule-trigger-workflow.yml index 5d3b2ff..f86ebae 100644 --- a/.github/workflows/submodule-trigger-workflow.yml +++ b/.github/workflows/submodule-trigger-workflow.yml @@ -38,13 +38,22 @@ jobs: call-submodule-update: needs: get-commit-info runs-on: [self-hosted] - + steps: + - name: Generate GitHub App Token + id: generate-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + owner: IONOS-Productivity + repositories: ncw-server + - name: Trigger ncw-server submodule update workflow run: | curl -X POST \ -H "Accept: application/vnd.github.v3+json" \ - -H "Authorization: token ${{ secrets.SUBMODULE_UPDATE_PAT }}" \ + -H "Authorization: token ${{ steps.generate-token.outputs.token }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/IONOS-Productivity/ncw-server/dispatches \ -d '{