checklicense

This commit is contained in:
Kirill Chikalin
2025-03-07 19:41:49 +03:00
parent 3a21bd2869
commit ee2e7f2c54

View File

@@ -5,26 +5,26 @@ on:
jobs:
# checklicense:
# name: Check for UNITY_LICENSE in GitHub Secrets
# runs-on: ubuntu-latest
# outputs:
# is_unity_license_set: ${{ steps.checklicense_job.outputs.is_unity_license_set }}
# steps:
# - name: Check whether unity activation requests should be done
# id: checklicense_job
# env:
# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
# UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
# UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
# run: |
# echo "Skip activation job: ${{ env.UNITY_LICENSE != '' }}"
# export is_unity_license_set="${{ env.UNITY_LICENSE != '' }}"
# echo "is_unity_license_set=$is_unity_license_set" >> $GITHUB_OUTPUT
checklicense:
name: Check for UNITY_LICENSE in GitHub Secrets
runs-on: ubuntu-latest
outputs:
is_unity_license_set: ${{ steps.checklicense_job.outputs.is_unity_license_set }}
steps:
- name: Check whether unity activation requests should be done
id: checklicense_job
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
run: |
echo "Skip activation job: ${{ env.UNITY_LICENSE != '' }}"
export is_unity_license_set="${{ env.UNITY_LICENSE != '' }}"
echo "is_unity_license_set=$is_unity_license_set" >> $GITHUB_OUTPUT
build:
name: Build for ${{ matrix.targetPlatform }}
# needs: checklicense
needs: checklicense
runs-on:
- ubuntu-latest
container: