From 082c53b374d7b2ebb8a17a2038e500a70d13fb62 Mon Sep 17 00:00:00 2001 From: liyang Date: Wed, 11 Dec 2024 11:07:33 +0800 Subject: [PATCH 1/2] ci: add some checks in the github action --- .github/pr-title-checker-config.json | 2 +- .github/workflows/ci.yaml | 1 + .github/workflows/e2e.yaml | 1 + .github/workflows/release.yaml | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/pr-title-checker-config.json b/.github/pr-title-checker-config.json index 0d6efe7..2d5d137 100644 --- a/.github/pr-title-checker-config.json +++ b/.github/pr-title-checker-config.json @@ -4,7 +4,7 @@ "color": "B60205" }, "CHECKS": { - "regexp": "^(feat|fix|test|refactor|chore|style|docs|perf|build|ci|revert)(!)?(\\(.*\\))?:.*", + "regexp": "^(feat|fix|test|refactor|chore|style|docs|perf|build|ci|revert|enhancement)(!)?(\\(.*\\))?:.*", "ignoreLabels" : ["ignore-title"] } } diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 413f4c9..f28691e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -5,6 +5,7 @@ on: [push, pull_request] jobs: chart-test: runs-on: ubuntu-latest + if: ${{ github.repository == 'GreptimeTeam/helm-charts' }} steps: - name: Checkout sources uses: actions/checkout@v3 diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index c8573bd..3f1868a 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -14,6 +14,7 @@ on: jobs: e2e: runs-on: ubuntu-latest + if: ${{ github.repository == 'GreptimeTeam/helm-charts' }} steps: - name: Checkout code uses: actions/checkout@v3 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 899ab33..fa95fb8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,6 +16,7 @@ jobs: permissions: contents: write runs-on: ubuntu-latest + if: ${{ github.repository == 'GreptimeTeam/helm-charts' }} steps: - name: Checkout uses: actions/checkout@v4 @@ -45,6 +46,7 @@ jobs: release-charts-to-acr: runs-on: ubuntu-latest + if: ${{ github.repository == 'GreptimeTeam/helm-charts' }} if: ${{ inputs.release-charts-to-acr == 'true' || github.event_name == 'push' }} steps: - name: Check out code From 512c3c060d887cde6b2c15999e15e8f1c5b1fd85 Mon Sep 17 00:00:00 2001 From: liyang Date: Wed, 11 Dec 2024 11:53:24 +0800 Subject: [PATCH 2/2] Update .github/workflows/release.yaml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workflows/release.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fa95fb8..f04a8b2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -46,8 +46,7 @@ jobs: release-charts-to-acr: runs-on: ubuntu-latest - if: ${{ github.repository == 'GreptimeTeam/helm-charts' }} - if: ${{ inputs.release-charts-to-acr == 'true' || github.event_name == 'push' }} + if: ${{ github.repository == 'GreptimeTeam/helm-charts' && (inputs.release-charts-to-acr == 'true' || github.event_name == 'push') }} steps: - name: Check out code uses: actions/checkout@v4