Skip to content

Commit c6b20b5

Browse files
authored
Merge template repository changes: remal/oss-template (#3074)
1 parent 8fb076e commit c6b20b5

File tree

3 files changed

+7
-30
lines changed

3 files changed

+7
-30
lines changed

.github/workflows/auto-assign.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
# - opened
1111

1212
env:
13-
DEFAULT_ASSIGNEE: ${{secrets.DEFAULT_ASSIGNEE || 'remal'}}
13+
DEFAULT_ASSIGNEE: ${{secrets.DEFAULT_ASSIGNEE || vars.DEFAULT_ASSIGNEE || 'remal'}}
1414

1515
permissions:
1616
issues: write

.github/workflows/rebase-dependabot-pull-requests.yml

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
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+
1419
concurrency:
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-
2527
jobs:
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}}

.github/workflows/sync-with-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ jobs:
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 || ''}}

0 commit comments

Comments
 (0)