Skip to content

Commit bcf9567

Browse files
committed
use official action
1 parent 1f27054 commit bcf9567

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

.github/workflows/release-published.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,11 @@ jobs:
1818
- uses: cloudposse/github-action-major-release-tagger@v1
1919
with:
2020
token: ${{ secrets.GITHUB_TOKEN }}
21-
- uses: tibdex/github-app-token@v2
22-
id: github-app
21+
- uses: actions/create-github-app-token@v1
22+
id: app-token
2323
with:
24-
revoke: true
25-
app_id: ${{ vars.BOT_GITHUB_APP_ID }}
26-
installation_retrieval_mode: "organization"
27-
installation_retrieval_payload: ${{ vars.BOT_GITHUB_APP_INSTALLATION_ID }}
28-
private_key: ${{ secrets.BOT_GITHUB_APP_PRIVATE_KEY }}
29-
repositories: >-
30-
["${{ github.repository }}"]
31-
# To make changes to a workflow file and commit it, these repo scopes are required:
32-
# - contents:write
33-
# - workflows:write
34-
# - metadata:read (set automatically)
35-
permissions: >-
36-
{
37-
"contents:": "write",
38-
"workflows:": "write",
39-
"metadata": "read"
40-
}
24+
app-id: ${{ vars.BOT_GITHUB_APP_ID }}
25+
private-key: ${{ secrets.BOT_GITHUB_APP_PRIVATE_KEY.PRIVATE_KEY }}
4126
- uses: cloudposse/github-action-release-branch-manager@v1
4227
env:
4328
GITHUB_TOKEN: ${{ steps.github-app.outputs.token }}

0 commit comments

Comments
 (0)