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:
push:
branches:
......@@ -8,7 +8,6 @@ on:
jobs:
shellchecker:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'no-ci') && !contains(github.event.head_commit.message, 'CI ignore')"
steps:
- uses: actions/checkout@v2
......
name: "(Manual) Shell Script Linter"
name: "Manual - Shell Script Linter"
on:
workflow_dispatch:
inputs:
......
name: "(CI) Test Features"
name: "CI - Test Features"
on:
push:
branches:
......@@ -8,7 +8,6 @@ on:
jobs:
test:
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
strategy:
matrix:
......
name: "(Manual) Test Features"
name: "Manual - Test Features"
on:
workflow_dispatch:
inputs:
......
name: "(PR) Test Updated Features"
name: "PR -Test Updated Features"
on:
pull_request:
jobs:
detect-changes:
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:
features: ${{ steps.filter.outputs.changes }}
steps:
......
......@@ -9,7 +9,6 @@ on:
jobs:
scenarios:
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:
- uses: actions/checkout@v2
......
......@@ -8,7 +8,7 @@ on:
jobs:
generate:
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:
- uses: actions/checkout@v2
......@@ -37,7 +37,7 @@ jobs:
# Add / update and commit
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
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