File tree Expand file tree Collapse file tree 3 files changed +7
-30
lines changed
Expand file tree Collapse file tree 3 files changed +7
-30
lines changed Original file line number Diff line number Diff line change 1010# - opened
1111
1212env :
13- DEFAULT_ASSIGNEE : ${{secrets.DEFAULT_ASSIGNEE || 'remal'}}
13+ DEFAULT_ASSIGNEE : ${{secrets.DEFAULT_ASSIGNEE || vars.DEFAULT_ASSIGNEE || 'remal'}}
1414
1515permissions :
1616 issues : write
Original file line number Diff line number Diff line change 1111 - cron : ' 31 0/4 * * *' # sync-with-template: adjust
1212 workflow_dispatch : { }
1313
14+ permissions :
15+ contents : read
16+ issues : write
17+ pull-requests : write
18+
1419concurrency :
1520 group : rebase-dependabot-pull-requests-${{github.ref}}
1621 cancel-in-progress : true
@@ -19,39 +24,11 @@ defaults:
1924 run :
2025 shell : bash
2126
22- env :
23- PUSH_BACK_TOKEN : ${{secrets.PUSH_BACK_TOKEN || github.token}}
24-
2527jobs :
2628 rebase-dependabot-pull-requests :
2729 name : Rebase Dependabot pull requests
2830 runs-on : ubuntu-latest
2931 timeout-minutes : 15
3032 steps :
31- - name : Get rate limits
32- uses : remal-github-actions/get-rate-limits@v1
33- id : rate-limits
34- with :
35- githubToken : ${{env.PUSH_BACK_TOKEN || github.token}}
36- - name : Make rate limits decision
37- id : decision
38- run : |
39- echo "Core rate limit usage: ${{steps.rate-limits.outputs.coreUsage}}"
40- if [ "${{steps.rate-limits.outputs.coreUsage < 75}}" == "true" ]; then
41- echo "Enough rate limits"
42- echo 'enough=true' >> $GITHUB_OUTPUT
43- else
44- echo "::warning::Not enough rate limits!"
45- if [ "${{github.event_name != 'schedule'}}" == "true" ]; then
46- echo "::warning::Executing anyway, as event is '${{github.event_name}}'"
47- echo 'enough=true' >> $GITHUB_OUTPUT
48- else
49- echo 'enough=false' >> $GITHUB_OUTPUT
50- fi
51- fi
52-
5333 - name : Rebase Dependabot pull requests
54- if : ${{fromJSON(steps.decision.outputs.enough) == true}}
5534 uses : remal-github-actions/rebase-dependabot-pull-requests@v1
56- with :
57- githubToken : ${{env.PUSH_BACK_TOKEN}}
Original file line number Diff line number Diff line change 6767 with :
6868 dryRun : ${{inputs.dryRun}}
6969 githubToken : ${{env.PUSH_BACK_TOKEN}}
70- templateRepository : ${{secrets.TEMPLATE_REPOSITORY || ''}}
70+ templateRepository : ${{secrets.TEMPLATE_REPOSITORY || vars.TEMPLATE_REPOSITORY || ''}}
You can’t perform that action at this time.
0 commit comments