Skip to content

Commit f3ba989

Browse files
authored
Ensure workflows only run on arm/arm-toolchain and not on forks (#79)
Currently workflows that exist under `.github/workflows` are executed not only on arm/arm-toolchain, but on all forks of this repo, including personal forks used for development and submitting PRs. To prevent that from happening, this change adds a condition to the existing workflows, checking if the current repo is arm/arm-toolchain before running.
1 parent bc170b5 commit f3ba989

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/automerge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
jobs:
1212
Run-Automerge:
1313
runs-on: ubuntu-latest
14+
if: github.repository == 'arm/arm-toolchain'
1415
strategy:
1516
matrix:
1617
branches:

.github/workflows/sync_from_upstream.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
Fetch-Upstream:
1111
runs-on: ubuntu-latest
12+
if: github.repository == 'arm/arm-toolchain'
1213
strategy:
1314
matrix:
1415
branch: [main, release/20.x]

0 commit comments

Comments
 (0)