mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 12:42:34 +00:00
new(ci): Cancel in-progress workflow runs on new trigger
This commit is contained in:
10
.github/workflows/release_alpha.yml
vendored
10
.github/workflows/release_alpha.yml
vendored
@@ -6,9 +6,19 @@ on:
|
||||
- alpha
|
||||
|
||||
jobs:
|
||||
cancel:
|
||||
name: Cancel Previous Runs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Cancel Workflow Action
|
||||
uses: styfle/cancel-workflow-action
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
|
||||
build:
|
||||
name: Alpha Release
|
||||
uses: CometTools/LunaSea/.github/workflows/build_all_platforms.yml@master
|
||||
needs: cancel
|
||||
with:
|
||||
FLAVOR: alpha
|
||||
VERSION: alpha-${{ github.sha }}
|
||||
|
||||
10
.github/workflows/release_beta.yml
vendored
10
.github/workflows/release_beta.yml
vendored
@@ -6,9 +6,19 @@ on:
|
||||
- beta
|
||||
|
||||
jobs:
|
||||
cancel:
|
||||
name: Cancel Previous Runs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Cancel Workflow Action
|
||||
uses: styfle/cancel-workflow-action
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
|
||||
build:
|
||||
name: Beta Release
|
||||
uses: CometTools/LunaSea/.github/workflows/build_all_platforms.yml@master
|
||||
needs: cancel
|
||||
with:
|
||||
FLAVOR: beta
|
||||
VERSION: beta-${{ github.sha }}
|
||||
|
||||
11
.github/workflows/release_internal.yml
vendored
11
.github/workflows/release_internal.yml
vendored
@@ -6,10 +6,19 @@ on:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
cancel:
|
||||
name: Cancel Previous Runs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Cancel Workflow Action
|
||||
uses: styfle/cancel-workflow-action
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
|
||||
build:
|
||||
|
||||
name: Internal Release
|
||||
uses: CometTools/LunaSea/.github/workflows/build_all_platforms.yml@master
|
||||
needs: cancel
|
||||
with:
|
||||
FLAVOR: internal
|
||||
VERSION: internal-${{ github.sha }}
|
||||
|
||||
Reference in New Issue
Block a user