diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index f1e9ea6..d43f1da 100755 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -1,4 +1,4 @@ -name: Nightly Build +name: Nightly Windows build on: schedule: @@ -10,9 +10,13 @@ permissions: contents: write # needed to create/update releases & upload assets packages: read # needed to pull GHCR image +env: + # CHANGE THIS to your GitHub user or org name (the owner of the original repo) + ORIGIN_OWNER: "OpenJE" + jobs: build-nightly-linux-container: - if: github.repository_owner == OpenJE + if: github.repository_owner == env.ORIGIN_OWNER runs-on: ubuntu-latest steps: @@ -70,7 +74,7 @@ jobs: prerelease: true build-nightly-windows-msvc: - if: github.repository_owner != OpenJE + if: github.repository_owner != env.ORIGIN_OWNER runs-on: windows-latest steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c887068..2f15266 100755 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release Build +name: Build Windows binary for release on: release: @@ -9,12 +9,16 @@ permissions: contents: write # needed to upload release assets packages: read # needed to pull GHCR image +env: + # CHANGE THIS to your GitHub user or org name (the owner of the original repo) + ORIGIN_OWNER: "OpenJE" + jobs: # 1. Linux job that INVOKES the MSVC 2003 container via docker run build-linux-container: # Only run: # - in the original repo (not forks) - if: github.repository_owner == OpenJE + if: github.repository_owner == env.ORIGIN_OWNER runs-on: ubuntu-latest @@ -67,7 +71,7 @@ jobs: # 2. Windows job using latest MSVC on windows-latest, with nmake build-windows-msvc: # Run on forks (i.e., not the original repo owner) - if: github.repository_owner != OpenJE + if: github.repository_owner != env.ORIGIN_OWNER runs-on: windows-latest