From e9ac95a9af2a2235af86b3742eb23a03a0349274 Mon Sep 17 00:00:00 2001 From: Siriwat K Date: Wed, 9 Nov 2022 17:29:57 +0700 Subject: [PATCH] [core] Ignore unrelated folders from github actions (#35028) --- .github/workflows/ci-check.yml | 22 ++++++++++++++++++++++ .github/workflows/ci.yml | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/ci-check.yml diff --git a/.github/workflows/ci-check.yml b/.github/workflows/ci-check.yml new file mode 100644 index 00000000000000..3c1224143e0764 --- /dev/null +++ b/.github/workflows/ci-check.yml @@ -0,0 +1,22 @@ +# This workflow is a workaround to make the github check "Successful" +# for the ci.yml, otherwise the changes in `docs/**` or `examples/**` won't be considered completed for github checks. +# +# Ref: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks +name: CI + +on: + push: + branches-ignore: + - 'renovate/**' + pull_request: + paths: + - 'docs/**' + - 'examples/**' + +permissions: {} + +jobs: + build: + runs-on: ubuntu-latest + steps: + - run: 'echo "No build required"' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2265cd92db4f65..b8ea6674c3b562 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,9 @@ on: # We don't need to run CI twice (push+pull_request) - 'renovate/**' pull_request: + paths-ignore: + - 'docs/**' + - 'examples/**' permissions: {}