From b8033c2e62eed13a14af1b6a4572957ec7bead60 Mon Sep 17 00:00:00 2001 From: SteveLauC Date: Sat, 13 Apr 2024 19:54:30 +0800 Subject: [PATCH] ci: only run changelog checker in PR (#2370) --- .github/workflows/check_new_changelog.yml | 18 ++++++++++++++++++ .github/workflows/ci.yml | 9 --------- 2 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/check_new_changelog.yml diff --git a/.github/workflows/check_new_changelog.yml b/.github/workflows/check_new_changelog.yml new file mode 100644 index 0000000000..b6ef26ab1c --- /dev/null +++ b/.github/workflows/check_new_changelog.yml @@ -0,0 +1,18 @@ +name: Check new CHANGELOGs + +on: + pull_request: + types: [opened, synchronize, reopened] + +permissions: + contents: read + +jobs: + check_new_changelog: + runs-on: ubuntu-20.04 + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: check new CHANGELOG + uses: ./.github/actions/check_new_changelog diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3200fecf22..8a56e7d2b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,15 +16,6 @@ env: MSRV: 1.69.0 jobs: - check_new_changelog: - runs-on: ubuntu-20.04 - steps: - - name: checkout - uses: actions/checkout@v4 - - - name: check new CHANGELOG - uses: ./.github/actions/check_new_changelog - macos: runs-on: macos-13 env: