gha: Prevent running outside zeldaret/oot (#2788)

* gha: Prevent running outside zeldaret/oot

* also dont run the following jobs

* hmmmmm
This commit is contained in:
Dragorn421
2026-08-04 06:48:58 +02:00
committed by GitHub
parent 22d4ca0be7
commit 05ee4fb843
+4 -2
View File
@@ -9,6 +9,8 @@ jobs:
build_repo:
# This is a *private* build container.
container: ghcr.io/zeldaret/oot-build:main
# Prevent running outside zeldaret/oot as fetching the container would fail anyway.
if: ${{ github.repository == 'zeldaret/oot' }}
name: Build repo (${{ matrix.version }})
runs-on: ubuntu-latest
@@ -77,7 +79,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/oot'' }}'
steps:
- run: |
if [ "${{ needs.build_repo.result }}" != "success" ]; then
@@ -88,7 +90,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/oot'' }}' # Run even if build_repo fails
steps:
- name: Checkout repository
uses: actions/checkout@v6