Skip to content

Commit 07d55f7

Browse files
committed
Logic for crons or push events
1 parent 59d9f73 commit 07d55f7

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Diff for: .github/workflows/action.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
1-
name: 'Run EmulationStation Script'
1+
name: 'Run Script'
22

33
on:
44
push:
5-
branches: [master, dev, test]
6-
# schedule:
7-
# - cron: "0 0 */2 * *"
5+
branches:
6+
- master
7+
- dev
8+
schedule:
9+
- cron: "0 0 */2 * *"
810

911

1012
jobs:
1113

1214
build:
1315

1416
runs-on: windows-latest
17+
18+
if: |
19+
github.event_name == 'push' ||
20+
(github.event_name == 'schedule' && github.ref == 'refs/heads/master')
21+
1522
1623
steps:
1724
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)