From 1ff4a33102ce735426157f8340607dd22a5151a5 Mon Sep 17 00:00:00 2001 From: sampathweb Date: Fri, 10 Mar 2023 15:51:15 -0600 Subject: [PATCH] Run build if formatting succeeds --- .github/workflows/actions.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index a7663b20f4..5564ed1742 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -5,6 +5,9 @@ on: pull_request: release: types: [created] +concurrency: + group: build-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: format: name: Check the code format @@ -36,7 +39,7 @@ jobs: build: name: Run tests runs-on: ubuntu-latest - needs: [format] + needs: format steps: - uses: actions/checkout@v2 - name: Set up Python 3.8