tweaked build script to be able to specify unity version

This commit is contained in:
Lachee 2025-05-16 19:21:54 +10:00
parent 3f60a312ec
commit d80c2374f9

View File

@ -31,6 +31,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
DOCKER_REGISTRY: docker.lakes.house/ DOCKER_REGISTRY: docker.lakes.house/
UNITY_VERSION: ${{ github.event.inputs.unity_version }}
strategy: strategy:
matrix: matrix:
@ -55,6 +56,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get Unity Version - name: Get Unity Version
if: ${{ github.event.inputs.unity_version == '' }}
run: | run: |
VERSION=$(head -n 1 versions.txt) VERSION=$(head -n 1 versions.txt)
echo "UNITY_VERSION=$VERSION" >> $GITHUB_ENV echo "UNITY_VERSION=$VERSION" >> $GITHUB_ENV