File tree 4 files changed +22
-7
lines changed
4 files changed +22
-7
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
- uses : actions/add-to-project@v1.0.2
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 11
11
- opened
12
12
jobs :
13
13
respond-to-issue :
14
- if : ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' }}
14
+ if : ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' && github.actor != 'octokit[bot]' }}
15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- name : Determine issue or PR number
Original file line number Diff line number Diff line change 7
7
update_prettier :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
+ - uses : actions/create-github-app-token@v2
11
+ id : app-token
12
+ with :
13
+ app-id : ${{ vars.OCTOKIT_APP_ID }}
14
+ private-key : ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
10
15
- uses : actions/checkout@v4
11
16
- uses : actions/setup-node@v4
12
17
with :
13
18
cache : npm
14
- node-version : 16
19
+ node-version : lts/*
15
20
- run : npm ci
16
21
- run : npm run lint:fix
17
22
- uses : gr2m/create-or-update-pull-request-action@v1.x
18
23
env :
19
- GITHUB_TOKEN : ${{ secrets.OCTOKITBOT_PAT }}
24
+ GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
20
25
with :
21
26
title : Prettier updated
22
27
body : An update to prettier required updates to your code.
Original file line number Diff line number Diff line change @@ -13,12 +13,17 @@ jobs:
13
13
update_routes :
14
14
runs-on : ubuntu-latest
15
15
steps :
16
+ - uses : actions/create-github-app-token@v2
17
+ id : app-token
18
+ with :
19
+ app-id : ${{ vars.OCTOKIT_APP_ID }}
20
+ private-key : ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
16
21
- uses : actions/checkout@v4
17
22
with :
18
- token : ${{ secrets.OCTOKITBOT_PAT }}
23
+ token : ${{ steps.app-token.outputs.token }}
19
24
- uses : actions/setup-node@v4
20
25
with :
21
- node-version : 20
26
+ node-version : lts/*
22
27
cache : npm
23
28
- run : git checkout routes-update || true
24
29
- run : npm install @octokit/types@latest
53
58
- name : Create Pull Request
54
59
uses : gr2m/create-or-update-pull-request-action@v1.x
55
60
env :
56
- GITHUB_TOKEN : ${{ secrets.OCTOKITBOT_PAT }}
61
+ GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
57
62
with :
58
63
title : 🚧 GitHub OpenAPI specifications changed
59
64
body : >
You can’t perform that action at this time.
0 commit comments