From 737260edbe61c5156633f92547167b068f287aa2 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Tue, 2 Aug 2022 23:44:44 +0100 Subject: [PATCH] Move newsfragment check to a separate workflow (#1193) ... to make sure we still get a preview even if there is no newsfragment. --- .github/workflows/checks.yaml | 18 ++++++++++++++++++ .github/workflows/main.yml | 12 ------------ 2 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/checks.yaml diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml new file mode 100644 index 00000000..083d6831 --- /dev/null +++ b/.github/workflows/checks.yaml @@ -0,0 +1,18 @@ +# workflow steps that ought to pass on a PR, but shouldn't block a preview. + +name: "Checks" +on: + pull_request: + +jobs: + check-newsfragments: + name: "🔎 Check that new newsfragments are valid" + if: github.event_name == 'pull_request' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: scripts/check-newsfragments + env: + PULL_REQUEST_NUMBER: ${{ github.event.number }} \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f0a840bd..8e83a3e7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,18 +44,6 @@ jobs: - name: "🔎 Run validator" run: | /env/bin/python scripts/check-event-schema-examples.py - - check-newsfragments: - name: "🔎 Check that new newsfragments are valid" - if: github.event_name == 'pull_request' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - run: scripts/check-newsfragments - env: - PULL_REQUEST_NUMBER: ${{ github.event.number }} calculate-baseurl: name: "⚙️ Calculate baseURL for later jobs"