mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
update name of pre_job to skip-duplicate-actions, and add skip-duplicate-actions to all combinations workflow
This commit is contained in:
parent
1b21b13ef3
commit
cfe5f6e017
3 changed files with 27 additions and 9 deletions
6
.github/workflows/compile-all-batteries.yml
vendored
6
.github/workflows/compile-all-batteries.yml
vendored
|
@ -11,7 +11,7 @@ on:
|
||||||
# This is the list of jobs that will be run concurrently.
|
# This is the list of jobs that will be run concurrently.
|
||||||
jobs:
|
jobs:
|
||||||
# This pre-job is run to skip workflows in case a workflow is already run, i.e. because the workflow is triggered by both push and pull_request
|
# This pre-job is run to skip workflows in case a workflow is already run, i.e. because the workflow is triggered by both push and pull_request
|
||||||
pre_job:
|
skip-duplicate-actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Map a step output to a job output
|
# Map a step output to a job output
|
||||||
outputs:
|
outputs:
|
||||||
|
@ -29,8 +29,8 @@ jobs:
|
||||||
# started depends on how many configurations the matrix
|
# started depends on how many configurations the matrix
|
||||||
# will produce.
|
# will produce.
|
||||||
build-batteries:
|
build-batteries:
|
||||||
needs: pre_job
|
needs: skip-duplicate-actions
|
||||||
if: needs.pre_job.outputs.should_skip != 'true'
|
if: needs.skip-duplicate-actions.outputs.should_skip != 'true'
|
||||||
|
|
||||||
# Here we tell GitHub that the jobs must be determined
|
# Here we tell GitHub that the jobs must be determined
|
||||||
# dynamically depending on a matrix configuration.
|
# dynamically depending on a matrix configuration.
|
||||||
|
|
24
.github/workflows/compile-all-combinations.yml
vendored
24
.github/workflows/compile-all-combinations.yml
vendored
|
@ -12,12 +12,30 @@ on:
|
||||||
types: [created, edited, prereleased, released, published]
|
types: [created, edited, prereleased, released, published]
|
||||||
|
|
||||||
# This is the list of jobs that will be run concurrently.
|
# This is the list of jobs that will be run concurrently.
|
||||||
# Since we use a build matrix, the actual number of jobs
|
|
||||||
# started depends on how many configurations the matrix
|
|
||||||
# will produce.
|
|
||||||
jobs:
|
jobs:
|
||||||
|
# This pre-job is run to skip workflows in case a workflow is already run, i.e. because the workflow is triggered by both push and pull_request
|
||||||
|
skip-duplicate-actions:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# Map a step output to a job output
|
||||||
|
outputs:
|
||||||
|
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
||||||
|
steps:
|
||||||
|
- id: skip_check
|
||||||
|
uses: fkirc/skip-duplicate-actions@v5
|
||||||
|
with:
|
||||||
|
# All of these options are optional, so you can remove them if you are happy with the defaults
|
||||||
|
concurrent_skipping: 'never'
|
||||||
|
skip_after_successful_duplicate: 'true'
|
||||||
|
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
|
||||||
|
|
||||||
|
# Since we use a build matrix, the actual number of jobs
|
||||||
|
# started depends on how many configurations the matrix
|
||||||
|
# will produce.
|
||||||
|
|
||||||
# This is the name of the job.
|
# This is the name of the job.
|
||||||
build-matrix:
|
build-matrix:
|
||||||
|
needs: skip-duplicate-actions
|
||||||
|
if: needs.skip-duplicate-actions.outputs.should_skip != 'true'
|
||||||
|
|
||||||
# Here we tell GitHub that the jobs must be determined
|
# Here we tell GitHub that the jobs must be determined
|
||||||
# dynamically depending on a matrix configuration.
|
# dynamically depending on a matrix configuration.
|
||||||
|
|
6
.github/workflows/compile-all-inverters.yml
vendored
6
.github/workflows/compile-all-inverters.yml
vendored
|
@ -11,7 +11,7 @@ on:
|
||||||
# This is the list of jobs that will be run concurrently.
|
# This is the list of jobs that will be run concurrently.
|
||||||
jobs:
|
jobs:
|
||||||
# This pre-job is run to skip workflows in case a workflow is already run, i.e. because the workflow is triggered by both push and pull_request
|
# This pre-job is run to skip workflows in case a workflow is already run, i.e. because the workflow is triggered by both push and pull_request
|
||||||
pre_job:
|
skip-duplicate-actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Map a step output to a job output
|
# Map a step output to a job output
|
||||||
outputs:
|
outputs:
|
||||||
|
@ -31,8 +31,8 @@ jobs:
|
||||||
|
|
||||||
# This is the name of the job.
|
# This is the name of the job.
|
||||||
build-inverters:
|
build-inverters:
|
||||||
needs: pre_job
|
needs: skip-duplicate-actions
|
||||||
if: needs.pre_job.outputs.should_skip != 'true'
|
if: needs.skip-duplicate-actions.outputs.should_skip != 'true'
|
||||||
|
|
||||||
# Here we tell GitHub that the jobs must be determined
|
# Here we tell GitHub that the jobs must be determined
|
||||||
# dynamically depending on a matrix configuration.
|
# dynamically depending on a matrix configuration.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue