Skip to content

Commit 873b3a6

Browse files
committed
Prevent github actions from running if commit includes 'no-github-ci'
I'm geting tired of cancelling the github actions while trying to get travis-ci working.
1 parent b2c4548 commit 873b3a6

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

.github/workflows/anchore.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ concurrency:
2929

3030
jobs:
3131
Anchore-Build-Scan:
32+
if: "!contains(github.event.head_commit.message, 'no-github-ci')"
3233
permissions:
3334
contents: read # for actions/checkout to fetch code
3435
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results

.github/workflows/ci-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
# use below if running on multiple OS's.
4141
runs-on: ${{ matrix.os }}
4242

43+
if: "!contains(github.event.head_commit.message, 'no-github-ci')"
44+
4345
strategy:
4446
fail-fast: false
4547
max-parallel: 4
@@ -263,6 +265,9 @@ jobs:
263265
finish:
264266
needs: test
265267
runs-on: ubuntu-latest
268+
269+
if: "!contains(github.event.head_commit.message, 'no-github-ci')"
270+
266271
steps:
267272
- name: Coveralls Finished
268273
uses: coverallsapp/github-action@0363cd28f449b7e5d3b6c6d269d31fe7c1201b68 # master

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
name: Analyze
3434
runs-on: ubuntu-latest
3535

36+
if: "!contains(github.event.head_commit.message, 'no-github-ci')"
37+
3638
permissions:
3739
contents: read
3840
security-events: write

.github/workflows/ossf-scorecard.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
analysis:
2222
name: Scorecard analysis
2323
runs-on: ubuntu-latest
24+
25+
if: "!contains(github.event.head_commit.message, 'no-github-ci')"
26+
2427
permissions:
2528
# Needed to upload the results to code-scanning dashboard.
2629
security-events: write

0 commit comments

Comments
 (0)