Skip to content

Commit 43f6eae

Browse files
gastmaierJRabacca
authored andcommitted
.github: Run main.yml only at org analogdevicesinc
The CI, that patches other branches, is only meaningful at the main repo. Mirroring of the patched branches can be done with the mirroring procedure. Signed-off-by: Jorge Marques <[email protected]>
1 parent 4795cda commit 43f6eae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
outputs:
1515
fail: ${{ steps.assert.outputs.fail }}
1616
warn: ${{ steps.assert.outputs.warn }}
17+
if: ${{ github.repository_owner == 'analogdevicesinc' }}
1718

1819
steps:
1920
- uses: analogdevicesinc/doctools/checkout@v1
@@ -27,7 +28,7 @@ jobs:
2728
id: assert
2829
run: |
2930
curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -L -o ci/runner_env.sh \
30-
https://raw.githubusercontent.com/${{ github.repository }}/ci/ci/runner_env.sh
31+
https://raw.githubusercontent.com/analogdevicesinc/ci/ci/runner_env.sh
3132
source ./ci/runner_env.sh
3233
export_labels
3334
@@ -42,6 +43,6 @@ jobs:
4243
job_fail_sync_main: ${{needs.sync_branches.outputs.fail}}
4344
run: |
4445
curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -L -o ci/runner_env.sh \
45-
https://raw.githubusercontent.com/${{ github.repository }}/ci/ci/runner_env.sh
46+
https://raw.githubusercontent.com/analogdevicesinc/ci/ci/runner_env.sh
4647
source ./ci/runner_env.sh
4748
assert_labels

0 commit comments

Comments
 (0)