Skip to content

Commit

Permalink
Run some GitHub action jobs only on main repository (#1438)
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Robert <[email protected]>
  • Loading branch information
marob authored Oct 27, 2024
1 parent 4c021f1 commit ab161c3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/app-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
pkg:
if: github.repository == 'CycloneDX/cdxgen'
# use ubuntu-20.04 due to avoid glic errors
runs-on: ubuntu-20.04
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [workflow_dispatch]

jobs:
build:
if: github.repository == 'CycloneDX/cdxgen'
# use ubuntu-20.04 due to avoid glic errors
runs-on: ubuntu-20.04
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/binary-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ concurrency:

jobs:
sae-builds:
if: github.repository == 'CycloneDX/cdxgen'
strategy:
matrix:
os: [windows-latest]
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:

jobs:
pkg:
if: github.repository == 'CycloneDX/cdxgen'
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -51,6 +52,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
containers:
if: github.repository == 'CycloneDX/cdxgen'
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down Expand Up @@ -124,6 +126,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
containers-deno:
if: github.repository == 'CycloneDX/cdxgen'
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -175,6 +178,7 @@ jobs:
cache-from: type=gha,scope=cdxgen-deno
cache-to: type=gha,mode=max,scope=cdxgen-deno
containers-ppc64:
if: github.repository == 'CycloneDX/cdxgen'
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -226,6 +230,7 @@ jobs:
cache-from: type=gha,scope=cdxgen-ppc64
cache-to: type=gha,mode=max,scope=cdxgen-ppc64
containers-bun:
if: github.repository == 'CycloneDX/cdxgen'
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nydus-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
workflow_dispatch:
jobs:
build:
if: github.repository == 'CycloneDX/cdxgen'
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit ab161c3

Please sign in to comment.