Skip to content

Commit 51874d2

Browse files
committed
Avoid GHA workflow being automatically stopped
Add an empty commit to the master branch once a month. See #22
1 parent 1a6e830 commit 51874d2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/trigger.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Trigger new build
2+
on:
3+
schedule:
4+
- cron: '15 11 3 * *'
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: checkout master
11+
uses: actions/checkout@v2
12+
- name: Create an empty commit and push it
13+
run: |
14+
git config --local user.name 'github-actions'
15+
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
16+
git commit --allow-empty -m 'Trigger a new build'
17+
git push origin master

0 commit comments

Comments
 (0)