github: Prevent duplicate CI runs
This cancels previous runs of the same branch and skips runs of the same content (e.g. after merges or tags).
This commit is contained in:
@@ -10,7 +10,19 @@ env:
|
|||||||
OS_NAME: linux
|
OS_NAME: linux
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
pre-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
should_skip: ${{ steps.skip-check.outputs.should_skip }}
|
||||||
|
steps:
|
||||||
|
- id: skip-check
|
||||||
|
uses: fkirc/skip-duplicate-actions@master
|
||||||
|
with:
|
||||||
|
concurrent_skipping: 'same_content'
|
||||||
|
|
||||||
android:
|
android:
|
||||||
|
needs: pre-check
|
||||||
|
if: ${{ needs.pre-check.outputs.should_skip != 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
TEST: android
|
TEST: android
|
||||||
|
|||||||
@@ -6,7 +6,19 @@ env:
|
|||||||
OS_NAME: linux
|
OS_NAME: linux
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
pre-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
should_skip: ${{ steps.skip-check.outputs.should_skip }}
|
||||||
|
steps:
|
||||||
|
- id: skip-check
|
||||||
|
uses: fkirc/skip-duplicate-actions@master
|
||||||
|
with:
|
||||||
|
concurrent_skipping: 'same_content'
|
||||||
|
|
||||||
lgtm:
|
lgtm:
|
||||||
|
needs: pre-check
|
||||||
|
if: ${{ needs.pre-check.outputs.should_skip != 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
TEST: lgtm
|
TEST: lgtm
|
||||||
|
|||||||
@@ -13,7 +13,19 @@ env:
|
|||||||
OS_NAME: linux
|
OS_NAME: linux
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
pre-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
should_skip: ${{ steps.skip-check.outputs.should_skip }}
|
||||||
|
steps:
|
||||||
|
- id: skip-check
|
||||||
|
uses: fkirc/skip-duplicate-actions@master
|
||||||
|
with:
|
||||||
|
concurrent_skipping: 'same_content'
|
||||||
|
|
||||||
latest:
|
latest:
|
||||||
|
needs: pre-check
|
||||||
|
if: ${{ needs.pre-check.outputs.should_skip != 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -72,6 +84,8 @@ jobs:
|
|||||||
retention-days: 5
|
retention-days: 5
|
||||||
|
|
||||||
crypto-plugins:
|
crypto-plugins:
|
||||||
|
needs: pre-check
|
||||||
|
if: ${{ needs.pre-check.outputs.should_skip != 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -108,6 +122,8 @@ jobs:
|
|||||||
retention-days: 5
|
retention-days: 5
|
||||||
|
|
||||||
xenial:
|
xenial:
|
||||||
|
needs: pre-check
|
||||||
|
if: ${{ needs.pre-check.outputs.should_skip != 'true' }}
|
||||||
runs-on: ubuntu-16.04
|
runs-on: ubuntu-16.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
@@ -10,7 +10,19 @@ env:
|
|||||||
OS_NAME: macos
|
OS_NAME: macos
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
pre-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
should_skip: ${{ steps.skip-check.outputs.should_skip }}
|
||||||
|
steps:
|
||||||
|
- id: skip-check
|
||||||
|
uses: fkirc/skip-duplicate-actions@master
|
||||||
|
with:
|
||||||
|
concurrent_skipping: 'same_content'
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
|
needs: pre-check
|
||||||
|
if: ${{ needs.pre-check.outputs.should_skip != 'true' }}
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
env:
|
env:
|
||||||
TEST: macos
|
TEST: macos
|
||||||
|
|||||||
@@ -9,7 +9,19 @@ env:
|
|||||||
OS_NAME: linux
|
OS_NAME: linux
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
pre-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
should_skip: ${{ steps.skip-check.outputs.should_skip }}
|
||||||
|
steps:
|
||||||
|
- id: skip-check
|
||||||
|
uses: fkirc/skip-duplicate-actions@master
|
||||||
|
with:
|
||||||
|
concurrent_skipping: 'same_content'
|
||||||
|
|
||||||
sonarcloud:
|
sonarcloud:
|
||||||
|
needs: pre-check
|
||||||
|
if: ${{ needs.pre-check.outputs.should_skip != 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
TEST: sonarcloud
|
TEST: sonarcloud
|
||||||
|
|||||||
@@ -13,7 +13,19 @@ env:
|
|||||||
MONOLITHIC: yes
|
MONOLITHIC: yes
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
pre-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
should_skip: ${{ steps.skip-check.outputs.should_skip }}
|
||||||
|
steps:
|
||||||
|
- id: skip-check
|
||||||
|
uses: fkirc/skip-duplicate-actions@master
|
||||||
|
with:
|
||||||
|
concurrent_skipping: 'same_content'
|
||||||
|
|
||||||
cross-compile:
|
cross-compile:
|
||||||
|
needs: pre-check
|
||||||
|
if: ${{ needs.pre-check.outputs.should_skip != 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
Reference in New Issue
Block a user