Only push to store if token is known

This commit is contained in:
Patrick Nicolas
2025-02-13 11:38:08 +01:00
parent eb88e323d9
commit 5ab723a944
+6 -1
View File
@@ -333,6 +333,11 @@ jobs:
else
echo "available=false" >> $GITHUB_OUTPUT;
fi
if [[ "${{ secrets.OCULUS_TOKEN }}" != '' ]]; then
echo "oculus-token=true" >> $GITHUB_OUTPUT;
else
echo "oculus-token=false" >> $GITHUB_OUTPUT;
fi
- name: Secrets
if: ${{ github.event_name != 'pull_request' && steps.secret-check.outputs.available == 'true' }}
@@ -415,7 +420,7 @@ jobs:
retention-days: 30
- name: Push to Oculus store
if: ${{ matrix.buildtype == 'Oculus' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master') }}
if: ${{ matrix.buildtype == 'Oculus' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master') && steps.secret-check.outputs.oculus-token == 'true' }}
env:
OCULUS_TOKEN: ${{ secrets.OCULUS_TOKEN }}
run: |