|
30 | 30 | id: check |
31 | 31 | with: |
32 | 32 | script: | |
| 33 | + const [targetRepoOwner, targetRepoName] = process.env.TARGET_REPOSITORY.split('/') |
| 34 | + core.setOutput('target-repo-owner', targetRepoOwner) |
| 35 | + core.setOutput('target-repo-name', targetRepoName) |
| 36 | +
|
33 | 37 | const getSHA = async (repository, ref) => { |
34 | 38 | if (ref.startsWith('refs/heads/') || ref.startsWith('refs/tags/')) ref = ref.substring(4) |
35 | 39 | else throw new Error(`Cannot handle ref '${ref}`) |
@@ -60,12 +64,13 @@ jobs: |
60 | 64 | core.setOutput('target-sha', targetSHA || '') |
61 | 65 | - name: obtain installation token |
62 | 66 | if: steps.check.outputs.skip == 'false' |
63 | | - uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 |
| 67 | + uses: actions/create-github-app-token@v1 |
64 | 68 | id: token |
65 | 69 | with: |
66 | | - app_id: ${{ secrets.GITGITGADGET_GITHUB_APP_ID }} |
67 | | - private_key: ${{ secrets.GITGITGADGET_GITHUB_APP_PRIVATE_KEY }} |
68 | | - repository: ${{ env.TARGET_REPOSITORY }} |
| 70 | + app-id: ${{ secrets.GITGITGADGET_GITHUB_APP_ID }} |
| 71 | + private-key: ${{ secrets.GITGITGADGET_GITHUB_APP_PRIVATE_KEY }} |
| 72 | + owner: ${{ steps.check.outputs.target-repo-owner }} |
| 73 | + repositories: ${{ steps.check.outputs.target-repo-name }} |
69 | 74 | - name: set authorization header |
70 | 75 | if: steps.check.outputs.skip == 'false' |
71 | 76 | uses: actions/github-script@v7 |
|
0 commit comments