File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,29 +20,25 @@ jobs:
2020 steps :
2121 - name : Generate token
2222 id : token
23- uses : tibdex/ github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
23+ uses : actions/create- github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94 # v2
2424 with :
25- app_id : ${{ secrets.TOKEN_EXCHANGE_APP }}
26- installation_retrieval_mode : id
27- installation_retrieval_payload : ${{ secrets.TOKEN_EXCHANGE_INSTALL }}
28- private_key : ${{ secrets.TOKEN_EXCHANGE_KEY }}
29- permissions : >-
30- {"contents": "write", "pull_requests": "write", "issues": "write"}
25+ app-id : ${{ secrets.TOKEN_EXCHANGE_APP }}
26+ private-key : ${{ secrets.TOKEN_EXCHANGE_KEY }}
27+ permission-contents : write
28+ permission-pull-requests : write
29+ permission-issues : write
3130
3231 - name : Fetch metadata
33- id : metadata
3432 uses : dependabot/fetch-metadata@08eff52bf64351f401fb50d4972fa95b9f2c2d1b # v2
3533 with :
3634 github-token : ${{ secrets.GITHUB_TOKEN }}
3735
3836 - name : Approve request
39- id : approve
4037 run : gh pr review --approve "${{github.event.pull_request.html_url}}"
4138 env :
4239 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4340
4441 - name : Enable automerge
45- id : automerge
4642 run : gh pr merge --rebase --auto "${{github.event.pull_request.html_url}}"
4743 env :
4844 GH_TOKEN : ${{ steps.token.outputs.token }}
Original file line number Diff line number Diff line change @@ -15,22 +15,26 @@ jobs:
1515 runs-on : ubuntu-latest
1616
1717 steps :
18+ - name : Generate token
19+ id : token
20+ uses : actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94 # v2
21+ with :
22+ app-id : ${{ secrets.TOKEN_EXCHANGE_APP }}
23+ private-key : ${{ secrets.TOKEN_EXCHANGE_KEY }}
24+ permission-contents : write
25+
1826 - name : Checkout source
19- id : source
2027 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
2128 with :
22- token : ${{ secrets.BOT_ACCESS_TOKEN }}
29+ token : ${{ steps.token.outputs.token }}
2330
2431 - name : Install nix
25- id : nix
2632 uses : cachix/install-nix-action@0b0e072294b088b73964f1d72dfdac0951439dbd # v31
2733
2834 - name : Update flake
29- id : flake
3035 run : nix flake update
3136
3237 - name : Source rebase
33- id : rebase
3438 run : git pull --autostash --rebase
3539
3640 - name : Commit changes
Original file line number Diff line number Diff line change @@ -20,21 +20,17 @@ jobs:
2020
2121 steps :
2222 - name : Checkout source
23- id : source
2423 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
2524
2625 - name : Setup ruby
27- id : ruby
2826 uses : ruby/setup-ruby@v1
2927 with :
3028 bundler-cache : true
3129
3230 - name : Run lint
33- id : lint
3431 run : bundle exec rake rubocop
3532
3633 - name : Run test
37- id : test
3834 run : bundle exec rake test
3935
4036...
You can’t perform that action at this time.
0 commit comments