From 2605870c209fc4e8be71406400f1d6ce3bcbf97c Mon Sep 17 00:00:00 2001 From: Marcin Szamotulski Date: Mon, 6 Nov 2023 10:45:13 +0100 Subject: [PATCH] Moved check-changelogs to a separate workflow It should only be run on PRs. --- .github/workflows/checks.yml | 27 +++++++++++++++++++++++++++ .github/workflows/ci.yml | 21 +-------------------- 2 files changed, 28 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/checks.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..2cf03f6 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,27 @@ +name: Checks +on: + pull_request: + types: + - opened + - synchronize + merge_group: +jobs: + check-changelogs: + name: Check changelogs + runs-on: ubuntu-latest + defaults: + run: + shell: bash + + steps: + - name: Install dependencies + run: sudo apt install -y fd-find + + - uses: actions/checkout@v4 + + - name: git fetch + run: git fetch origin master:master + + - name: Check changelogs + run: ./scripts/check-changelogs.sh + diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a884a85..1d92ed0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI +name: Tests on: push: branches: @@ -37,22 +37,3 @@ jobs: - run: cabal test - run: cabal haddock - run: cabal sdist - - check-changelogs: - name: Check changelogs - runs-on: ubuntu-latest - defaults: - run: - shell: bash - - steps: - - name: Install dependencies - run: sudo apt install -y fd-find - - - uses: actions/checkout@v4 - - - name: git fetch - run: git fetch origin master:master - - - name: Check changelogs - run: ./scripts/check-changelogs.sh