Skip to content

Commit 503bd2a

Browse files
hugovkhroncok
authored andcommitted
Test on other triggers but only deploy on cron
1 parent 04d37dd commit 503bd2a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/update-calendar.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Update calendar
22

33
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
47
schedule:
58
- cron: '0 0 * * *'
69

@@ -22,7 +25,8 @@ jobs:
2225
run: pipenv install
2326
- name: Run script
2427
run: pipenv run update-calendar
25-
- uses: stefanzweifel/git-auto-commit-action@v5
28+
- if: github.event_name == 'schedule'
29+
uses: stefanzweifel/git-auto-commit-action@v5
2630
with:
2731
commit_message: Auto commit - Calendar was updated
2832

0 commit comments

Comments
 (0)