We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e367ca commit f6e0044Copy full SHA for f6e0044
.github/workflows/sync-repos.yml
@@ -4,7 +4,8 @@ on:
4
- cron: "10 */3 * * *"
5
jobs:
6
sync-release-branches:
7
- if: github.head_ref == ""
+ # 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
9
runs-on: ubuntu-latest
10
steps:
11
- name: "Sync Release Branches"
@@ -16,7 +17,7 @@ jobs:
16
17
destination_branch_prefix: "discvr-"
18
github_token: ${{ secrets.GITHUB_TOKEN }}
19
sync-develop:
20
21
22
23
- name: "Sync Develop Branch"
0 commit comments