Skip to content

Commit

Permalink
cancel prev
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFirekeeper committed Mar 21, 2024
1 parent a88d339 commit 7b0f9d3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@ on:
types: [opened, synchronize]

jobs:
cancelPreviousRuns:
name: Cancel Previous Workflow Runs
runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'workflow_dispatch'
steps:
- name: Cancel Previous Workflow Runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
workflow_name: "Unity Cross-Platform Build and Test Workflow"
branch: ${{ github.event.workflow_run.head_branch }}

buildAndTestForLinuxBasedPlatforms:
name: Build and Test for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest-16
runs-on: ubuntu-latest-32
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 7b0f9d3

Please sign in to comment.