Unverified Commit 97c1abf3 authored by Josh Spicer's avatar Josh Spicer Committed by GitHub

Skip CI on Documentation PRs (#103)

* no-ci

* [skip ci]

* attempt to not run CI on documentation updates

* remove old if statements in CI

* cleaner names [skip ci]
parent 023e9c46
name: "(CI) Shell Script Linter" name: "CI - Shell Script Linter"
on: on:
push: push:
branches: branches:
...@@ -8,7 +8,6 @@ on: ...@@ -8,7 +8,6 @@ on:
jobs: jobs:
shellchecker: shellchecker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'no-ci') && !contains(github.event.head_commit.message, 'CI ignore')"
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
......
name: "(Manual) Shell Script Linter" name: "Manual - Shell Script Linter"
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
......
name: "(CI) Test Features" name: "CI - Test Features"
on: on:
push: push:
branches: branches:
...@@ -8,7 +8,6 @@ on: ...@@ -8,7 +8,6 @@ on:
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'no-ci') && !contains(github.event.head_commit.message, 'CI ignore') && !contains(github.event.head_commit.message, 'Automated documentation update')"
continue-on-error: true continue-on-error: true
strategy: strategy:
matrix: matrix:
......
name: "(Manual) Test Features" name: "Manual - Test Features"
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
......
name: "(PR) Test Updated Features" name: "PR -Test Updated Features"
on: on:
pull_request: pull_request:
jobs: jobs:
detect-changes: detect-changes:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'no-ci') && !contains(github.event.head_commit.message, 'CI ignore') && !contains(github.event.head_commit.message, 'Automated documentation update')"
outputs: outputs:
features: ${{ steps.filter.outputs.changes }} features: ${{ steps.filter.outputs.changes }}
steps: steps:
......
...@@ -9,7 +9,6 @@ on: ...@@ -9,7 +9,6 @@ on:
jobs: jobs:
scenarios: scenarios:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'no-ci') && !contains(github.event.head_commit.message, 'CI ignore') && !contains(github.event.head_commit.message, 'Automated documentation update')"
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
......
...@@ -8,7 +8,7 @@ on: ...@@ -8,7 +8,7 @@ on:
jobs: jobs:
generate: generate:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'no-ci') && !contains(github.event.head_commit.message, 'CI ignore')" if: "github.ref == 'refs/heads/main'"
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
...@@ -37,7 +37,7 @@ jobs: ...@@ -37,7 +37,7 @@ jobs:
# Add / update and commit # Add / update and commit
git add */**/README.md git add */**/README.md
git commit -m 'Automated documentation update' || export NO_UPDATES=true git commit -m 'Automated documentation update [skip ci]' || export NO_UPDATES=true
# Push # Push
if [ "$NO_UPDATES" != "true" ] ; then if [ "$NO_UPDATES" != "true" ] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment