Skip to content

Commit 947db16

Browse files
committed
build: skip running workflow jobs when ci: Skip label is applied
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 11f3cfa commit 947db16

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

.github/workflows/run_affected_benchmarks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ jobs:
5050

5151
# Define a job for running changed benchmarks...
5252
process:
53-
5453
# Define a display name:
5554
name: 'Run affected benchmarks'
5655

56+
# Only run this job if a pull request does not have a "ci: Skip" label:
57+
if: "${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci: Skip') }}"
58+
5759
# Define the type of virtual host machine:
5860
runs-on: ubuntu-latest
5961

.github/workflows/run_affected_examples.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
# Define a display name:
5252
name: 'Run changed examples'
5353

54+
# Only run this job if a pull request does not have a "ci: Skip" label:
55+
if: "${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci: Skip') }}"
56+
5457
# Define the type of virtual host machine:
5558
runs-on: ubuntu-latest
5659

.github/workflows/run_affected_tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ jobs:
8686
# Define a display name:
8787
name: 'Run affected tests'
8888

89+
# Only run this job if a pull request does not have a "ci: Skip" label:
90+
if: "${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci: Skip') }}"
91+
8992
# Define the type of virtual host machine:
9093
runs-on: ubuntu-latest
9194

.github/workflows/run_tests_coverage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ jobs:
8686
# Define a display name:
8787
name: 'Calculate test coverage for packages'
8888

89+
# Only run this job if a pull request does not have a "ci: Skip" label:
90+
if: "${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci: Skip') }}"
91+
8992
# Define the type of virtual host machine:
9093
runs-on: ubuntu-latest
9194

0 commit comments

Comments
 (0)