generated from remal-github-actions/template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (52 loc) · 1.43 KB
/
bump-repository-activity.yml
File metadata and controls
58 lines (52 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Bump repository activity
on:
schedule:
- cron: '38 21 * * *' # sync-with-template: adjust
push:
branches:
- main
paths:
- '.github/workflows/bump-repository-activity.yml'
workflow_dispatch:
inputs:
dryRun:
required: true
default: 'false'
description: Set to 'true' to enable dry run
type: choice
options:
- 'true'
- 'false'
maxInactivityDays:
required: true
default: 14
description: Max inactivity days. If there are no commits during this duration, a new commit will be created.
type: number
permissions:
id-token: write
concurrency:
group: bump-repository-activity-${{github.ref}}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
bump-repository-activity:
name: Bump repository activity
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Get GitHub Token
id: get-token
uses: remal/github-repository-token-issuer@v1
with:
scopes: |
contents: write
- name: Bump repository activity
uses: remal-github-actions/bump-repository-activity@v1
with:
dryRun: ${{inputs.dryRun || 'false'}}
githubToken: ${{steps.get-token.outputs.token}}
maxInactivityDays: ${{inputs.maxInactivityDays || 14}}
bumperFile: 'repository-activity.bumper'
commitMessage: '[push-back] Bump repository activity'