Skip to content

Commit

Permalink
Revert "Remove PHOTON_PAT from the top level environment"
Browse files Browse the repository at this point in the history
This reverts commit 4692d05.
  • Loading branch information
mikeage committed Mar 4, 2024
1 parent 347ad00 commit f94da9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on: # yamllint disable-line rule:truthy

env:
UNITY_VERSION: "2021.3.30f1"

PHOTON_PAT: ${{ secrets.PHOTON_PAT }} # This needs to be here, since you can't use a ${{ secrets }} within an if: condition
jobs:
configuration:
if: |
Expand Down Expand Up @@ -334,15 +334,15 @@ jobs:
rm -rf tmp.plugin tmp.package
- name: Checkout private photon repository if available
if: ${{ secrets.PHOTON_PAT }}
if: ${{ env.PHOTON_PAT }}
uses: actions/checkout@v4
with:
token: ${{ secrets.PHOTON_PAT }}
token: ${{ env.PHOTON_PAT }}
repository: icosa-mirror/photon-fusion
path: photon-fusion-mirror/

- name: Copy photon files
if: ${{ secrets.PHOTON_PAT }}
if: ${{ env.PHOTON_PAT }}
run: |
rsync -a --ignore-existing photon-fusion-mirror/ ./
echo "For debugging: these are the files in Assets/Photon:"
Expand Down

0 comments on commit f94da9b

Please sign in to comment.