diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2026-08-02 09:28:06 -0400 |
|---|---|---|
| committer | Anghelo Carvajal <angheloalf95@gmail.com> | 2026-08-02 09:28:06 -0400 |
| commit | 08d6fe1084e1a7bbfbf41230d1f8eec94e8be13a (patch) | |
| tree | bc78c2d8130c2857db66571f2b341bc2d9895a8d /.github | |
| parent | 1b1d56ab162910d87e455ec736c01b36cb44bfdf (diff) | |
Prevent running CI on forks
Incorporates the changes from https://github.com/zeldaret/oot/pull/2788
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06f6bb6a0..60e649783 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,8 @@ jobs: build_repo: # This is a *private* build container. container: ghcr.io/zeldaret/mm-build:main + # Prevent running outside zeldaret/mm as fetching the container would fail anyway. + if: ${{ github.repository == 'zeldaret/mm' }} name: Build repo (${{ matrix.version }}) runs-on: ubuntu-latest @@ -120,7 +122,7 @@ jobs: needs: [build_repo] runs-on: ubuntu-latest # Solution 1 from https://github.com/actions/runner/issues/2566#issuecomment-3053484216 - if: always() + if: 'always() && ${{ github.repository == ''zeldaret/mm'' }}' steps: - run: | if [ "${{ needs.build_repo.result }}" != "success" ]; then @@ -131,7 +133,7 @@ jobs: name: Merge BSS fixes runs-on: ubuntu-latest needs: [build_repo] - if: '!cancelled()' # Run even if build_repo fails + if: '!cancelled() && ${{ github.repository == ''zeldaret/mm'' }}' # Run even if build_repo fails steps: - name: Checkout repository uses: actions/checkout@v6 |
