Skip to content

Commit f6e0044

Browse files
committed
Correct yml syntax
1 parent 1e367ca commit f6e0044

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/sync-repos.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
- cron: "10 */3 * * *"
55
jobs:
66
sync-release-branches:
7-
if: github.head_ref == ""
7+
# github.head_ref should only be set on forked repos, meaning this action should only run on the primary fork
8+
if: !github.head_ref
89
runs-on: ubuntu-latest
910
steps:
1011
- name: "Sync Release Branches"
@@ -16,7 +17,7 @@ jobs:
1617
destination_branch_prefix: "discvr-"
1718
github_token: ${{ secrets.GITHUB_TOKEN }}
1819
sync-develop:
19-
if: github.head_ref == ""
20+
if: !github.head_ref
2021
runs-on: ubuntu-latest
2122
steps:
2223
- name: "Sync Develop Branch"

0 commit comments

Comments
 (0)