Skip to content

Commit

Permalink
特定ブランチで動作させる
Browse files Browse the repository at this point in the history
  • Loading branch information
Santarh committed Mar 27, 2024
1 parent 355552b commit 99b3e94
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/create-unitypackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Create UnityPackage

on:
workflow_dispatch:
push:
branches:
- workflow-wip

env:
UNITY_PROJECT_PATH: .
Expand All @@ -24,17 +27,19 @@ jobs:
needs: checkout
runs-on: [self-hosted, Windows, X64, Unity]
outputs:
unity-editor-executable: ${{ steps.unity-editor-installation-check.outputs.unity-editor-executable }}
unity-editor-executable: ${{ steps.check-unity-editor-installation.outputs.unity-editor-executable }}
steps:
- id: get-project-unity-version
- name: Get Project Unity Version
id: get-project-unity-version
run: |
PROJECT_VERSION_PATH="${UNITY_PROJECT_PATH}/ProjectSettings/ProjectVersion.txt"
UNITY_VERSION_RAW=`cat ${PROJECT_VERSION_PATH} | yq .m_EditorVersionWithRevision`
UNITY_VERSION=`echo ${UNITY_VERSION_RAW} | sed -E "s/^(\S+)\s+\((\S+)\)$/\1/"`
UNITY_CHANGESET=`echo ${UNITY_VERSION_RAW} | sed -E "s/^(\S+)\s+\((\S+)\)$/\2/"`
- id: unity-editor-installation-check
- name: Check Unity Editor Installation
id: check-unity-editor-installation
run: |
UNITY_HUB="C:\Program Files\Unity Hub\Unity Hub.exe"
Expand All @@ -60,7 +65,8 @@ jobs:
needs: detect-unity-version
runs-on: [self-hosted, Windows, X64, Unity]
steps:
- id: run
- name: Run Editor Tests
id: run-editor-tests
run: |
"${{ needs.detect-unity-version.outputs.unity-editor-executable }}" \
-quit \
Expand Down

0 comments on commit 99b3e94

Please sign in to comment.