Skip to content

Commit 1721cf1

Browse files
fix(ci): add repo guard to prevent CI running on mirrors
All three jobs now have if: github.repository == 'Interested-Deving-1896/liqxanmod'. This stops the build triggering on OSP and OOC mirror pushes, which were failing on every sync. Matches the pattern used in xanmod-unified-kernel and liquorix-unified-kernel.
1 parent 6df8d7f commit 1721cf1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
shellcheck:
2525
name: Shellcheck
2626
runs-on: ubuntu-latest
27+
if: github.repository == 'Interested-Deving-1896/liqxanmod'
2728
steps:
2829
- uses: actions/checkout@v4
2930
- name: Install shellcheck
@@ -37,6 +38,7 @@ jobs:
3738
name: Build (${{ matrix.distro }} / ${{ matrix.mode }})
3839
runs-on: ubuntu-latest
3940
needs: shellcheck
41+
if: github.repository == 'Interested-Deving-1896/liqxanmod'
4042
strategy:
4143
fail-fast: false
4244
matrix:
@@ -157,7 +159,7 @@ jobs:
157159
name: Release
158160
runs-on: ubuntu-latest
159161
needs: build-matrix
160-
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
162+
if: github.repository == 'Interested-Deving-1896/liqxanmod' && github.ref == 'refs/heads/main' && github.event_name == 'push'
161163
permissions:
162164
contents: write
163165
id-token: write

0 commit comments

Comments
 (0)