Skip to content

Commit

Permalink
CI: Run on all refs, but only rsync main
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Sep 16, 2024
1 parent 7492b51 commit ea3cf7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: build

on:
push:
branches: ["main"]
schedule:
# While we don't have hooks triggering this from riot-sys etc, a cron job
# is the next best thing
Expand Down Expand Up @@ -33,6 +32,7 @@ jobs:
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
SECRET_PORT: ${{ secrets.SECRET_PORT }}
if: github.ref == 'refs/heads/main'
run: |
# Beware that SSH uses /root and not ~ = ${HOME} = /github/home/ as
# documented on https://bugzilla.mindrot.org/show_bug.cgi?id=3048
Expand Down

0 comments on commit ea3cf7c

Please sign in to comment.