Skip to content

Commit 94af32d

Browse files
committed
gh workflow fix
1 parent f1640a7 commit 94af32d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- main
77
pull_request:
88
workflow_dispatch:
9+
schedule:
10+
- cron: "0 */3 * * *" # every 3 hours
911

1012
permissions:
1113
contents: read
@@ -41,7 +43,8 @@ jobs:
4143
path: dist
4244

4345
deploy:
44-
if: github.event_name == 'push'
46+
# only run deploy when we're effectively on main
47+
if: github.ref == 'refs/heads/main'
4548
needs: build
4649
runs-on: ubuntu-latest
4750
environment:

0 commit comments

Comments
 (0)