Skip to content

Commit

Permalink
ci: Only do CI jobs on main repository
Browse files Browse the repository at this point in the history
I noticed my doanac/meta-qcom-hwe fork was trying to workflows it
doesn't have access to since we use self-hosted runners.

Signed-off-by: Andy Doan <andy@foundries.io>
  • Loading branch information
doanac committed Oct 17, 2024
1 parent 84fd9b0 commit 6eb5c68
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-yocto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
yocto-check-layer:
if: github.repository == 'quic-yocto/meta-qcom-hwe'
runs-on: [self-hosted, x86]
steps:
- uses: actions/checkout@v4
Expand All @@ -19,6 +20,7 @@ jobs:
ci/yocto-check-layer.sh
compile:
if: github.repository == 'quic-yocto/meta-qcom-hwe'
strategy:
fail-fast: true
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
compile:
if: github.repository == 'quic-yocto/meta-qcom-hwe'
strategy:
fail-fast: true
matrix:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/repolinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
repolinter:
if: github.repository == 'quic-yocto/meta-qcom-hwe'
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand All @@ -27,4 +28,4 @@ jobs:
if: steps.check_files.outputs.files_exists == 'false'
uses: todogroup/repolinter-action@v1
with:
config_url: "https://raw.githubusercontent.com/quic/.github/main/repolint.json"
config_url: "https://raw.githubusercontent.com/quic/.github/main/repolint.json"

0 comments on commit 6eb5c68

Please sign in to comment.