From 3415f2a6683b0218816e189c7ed47100a031d45c Mon Sep 17 00:00:00 2001 From: Weike Qu <47606630+weikequ@users.noreply.github.com> Date: Tue, 6 Dec 2022 11:45:27 -0800 Subject: [PATCH] fix: added the contrib folder to be ignored by CI (#92) Signed-off-by: Weike Qu *Description of changes:* - Current CI still runs when files in contrib folder is edited. The CI should ignore the contrib folder. - [ ] I've reviewed the guidance in CONTRIBUTING.md #### License Acceptance By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. Signed-off-by: Weike Qu --- .github/workflows/ci-docs.yaml | 14 ++++++++------ .github/workflows/ci.yaml | 2 ++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-docs.yaml b/.github/workflows/ci-docs.yaml index 1aa1303b3..b583b4eda 100644 --- a/.github/workflows/ci-docs.yaml +++ b/.github/workflows/ci-docs.yaml @@ -14,37 +14,39 @@ on: - main paths: - '**.md' + - 'contrib/**' pull_request: branches: - main paths: - '**.md' + - 'contrib/**' jobs: gen-code-no-diff: runs-on: ubuntu-latest steps: - - run: echo "Skipping CI for docs" + - run: echo "Skipping CI for docs & contrib files" unit-tests: runs-on: ubuntu-latest steps: - - run: echo "Skipping CI for docs" + - run: echo "Skipping CI for docs & contrib files" go-linter: runs-on: ubuntu-latest steps: - - run: echo "Skipping CI for docs" + - run: echo "Skipping CI for docs & contrib files" go-mod-tidy-check: runs-on: ubuntu-latest steps: - - run: echo "Skipping CI for docs" + - run: echo "Skipping CI for docs & contrib files" check-licenses: runs-on: ubuntu-latest steps: - - run: echo "Skipping CI for docs" + - run: echo "Skipping CI for docs & contrib files" e2e-tests: strategy: matrix: os: [[self-hosted, macos, amd64, 11.7], [self-hosted, macos, amd64, 12.6], [self-hosted, macos, arm64, 11.7], [self-hosted, macos, arm64, 12.6]] runs-on: ${{ matrix.os }} steps: - - run: echo "Skipping CI for docs" + - run: echo "Skipping CI for docs & contrib files" diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b34cc2c83..4e7255b10 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,11 +7,13 @@ on: - main paths-ignore: - '**.md' + - 'contrib/**' pull_request: branches: - main paths-ignore: - '**.md' + - 'contrib/**' concurrency: group: ${{ github.workflow }}-${{ github.ref }}