From 4fc0f7dd2c1ae33112600a7932a956d67793e8bb Mon Sep 17 00:00:00 2001 From: Webber Date: Sat, 7 Dec 2019 16:15:59 +0100 Subject: [PATCH] Add pull requests as trigger for workflow --- .github/workflows/main.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2149b8bc..8262a25f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,7 @@ name: Actions 😎 -on: [push] +on: + pull_request: {} + push: { branches: [master] } jobs: buildForWebGL: @@ -10,12 +12,17 @@ jobs: - name: Checkout repository uses: actions/checkout@v1 + # Activate license + - name: Activate license + uses: webbertakken/unity-activate@v1 + env: + UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} + # Configure builder - name: Build project id: buildStep uses: ./ env: - UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} UNITY_PROJECT_PATH: test-project BUILD_NAME: TestBuild BUILD_TARGET: WebGL @@ -28,3 +35,8 @@ jobs: with: name: Build path: ${{ steps.buildStep.outputs.allBuildsPath }} + + # Return license + - name: Return License + uses: webbertakken/unity-return-license@v0.1 + if: always()