File tree 3 files changed +21
-6
lines changed
3 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 12
12
runs-on : ubuntu-latest
13
13
continue-on-error : true
14
14
steps :
15
+ - uses : actions/create-github-app-token@v2
16
+ id : app-token
17
+ with :
18
+ app-id : ${{ vars.OCTOKIT_APP_ID }}
19
+ private-key : ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
15
20
16
21
with :
17
22
project-url : https://github.com/orgs/octokit/projects/10
18
- github-token : ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN }}
23
+ github-token : ${{ steps.app-token.outputs.token }}
19
24
labeled : " Status: Stale"
20
25
label-operator : NOT
Original file line number Diff line number Diff line change 19
19
name : release
20
20
runs-on : ubuntu-latest
21
21
steps :
22
- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
22
+ - uses : actions/create-github-app-token@v2
23
+ id : app-token
24
+ with :
25
+ app-id : ${{ vars.OCTOKIT_APP_ID }}
26
+ private-key : ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
27
+ - uses : actions/checkout@v4
23
28
- uses : actions/setup-node@v4
24
29
with :
25
30
node-version : lts/*
@@ -28,10 +33,10 @@ jobs:
28
33
- run : npm run build
29
34
- run : npx semantic-release
30
35
env :
31
- GITHUB_TOKEN : ${{ secrets.OCTOKITBOT_PAT }}
36
+ GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
32
37
NPM_TOKEN : ${{ secrets.OCTOKITBOT_NPM_TOKEN }}
33
38
- run : npm run docs
34
39
- uses : maxheld83/ghpages@master
35
40
env :
36
41
BUILD_DIR : docs/
37
- GH_PAT : ${{ secrets.OCTOKIT_PAT }}
42
+ GH_PAT : ${{ steps.app-token.outputs.token }}
Original file line number Diff line number Diff line change 8
8
update :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
11
+ - uses : actions/create-github-app-token@v2
12
+ id : app-token
13
+ with :
14
+ app-id : ${{ vars.OCTOKIT_APP_ID }}
15
+ private-key : ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
16
+ - uses : actions/checkout@v4
12
17
- uses : actions/setup-node@v4
13
18
with :
14
19
node-version : " lts/*"
27
32
- name : Create Pull Request
28
33
29
34
env :
30
- GITHUB_TOKEN : ${{ secrets.OCTOKITBOT_PAT }}
35
+ GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
31
36
with :
32
37
title : 🚧 GitHub OpenAPI spec changed
33
38
body : >
You can’t perform that action at this time.
0 commit comments