diff --git a/.github/workflows/pr_checks_skip.yaml b/.github/workflows/pr_checks_skip.yaml new file mode 100644 index 000000000..53476d79c --- /dev/null +++ b/.github/workflows/pr_checks_skip.yaml @@ -0,0 +1,28 @@ +# When none of the paths are matched for the pr_checks.yaml workflow +# we still need the require-all-checks-to-pass job to pass +name: PR checks skip + +on: + pull_request: + branches: + - main + paths: + - docs/** + + push: + branches: + - main + paths: + - docs/** + +jobs: + require-all-checks-to-pass: + if: always() + runs-on: ubuntu-latest + steps: + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + allowed-failures: + allowed-skips: + jobs: []