Skip to content

Commit ab161c3

Browse files
authored
Run some GitHub action jobs only on main repository (#1438)
Signed-off-by: Maxime Robert <[email protected]>
1 parent 4c021f1 commit ab161c3

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

.github/workflows/app-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
pkg:
10+
if: github.repository == 'CycloneDX/cdxgen'
1011
# use ubuntu-20.04 due to avoid glic errors
1112
runs-on: ubuntu-20.04
1213
steps:

.github/workflows/appimage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on: [workflow_dispatch]
44

55
jobs:
66
build:
7+
if: github.repository == 'CycloneDX/cdxgen'
78
# use ubuntu-20.04 due to avoid glic errors
89
runs-on: ubuntu-20.04
910
steps:

.github/workflows/binary-builds.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ concurrency:
1515

1616
jobs:
1717
sae-builds:
18+
if: github.repository == 'CycloneDX/cdxgen'
1819
strategy:
1920
matrix:
2021
os: [windows-latest]

.github/workflows/npm-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414

1515
jobs:
1616
pkg:
17+
if: github.repository == 'CycloneDX/cdxgen'
1718
runs-on: ubuntu-latest
1819
permissions:
1920
contents: read
@@ -51,6 +52,7 @@ jobs:
5152
env:
5253
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5354
containers:
55+
if: github.repository == 'CycloneDX/cdxgen'
5456
runs-on: ubuntu-latest
5557
permissions:
5658
contents: write
@@ -124,6 +126,7 @@ jobs:
124126
env:
125127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
126128
containers-deno:
129+
if: github.repository == 'CycloneDX/cdxgen'
127130
runs-on: ubuntu-latest
128131
permissions:
129132
contents: read
@@ -175,6 +178,7 @@ jobs:
175178
cache-from: type=gha,scope=cdxgen-deno
176179
cache-to: type=gha,mode=max,scope=cdxgen-deno
177180
containers-ppc64:
181+
if: github.repository == 'CycloneDX/cdxgen'
178182
runs-on: ubuntu-latest
179183
permissions:
180184
contents: read
@@ -226,6 +230,7 @@ jobs:
226230
cache-from: type=gha,scope=cdxgen-ppc64
227231
cache-to: type=gha,mode=max,scope=cdxgen-ppc64
228232
containers-bun:
233+
if: github.repository == 'CycloneDX/cdxgen'
229234
runs-on: ubuntu-latest
230235
permissions:
231236
contents: read

.github/workflows/nydus-demo.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
workflow_dispatch:
55
jobs:
66
build:
7+
if: github.repository == 'CycloneDX/cdxgen'
78
strategy:
89
fail-fast: false
910
matrix:

0 commit comments

Comments
 (0)