diff --git a/.github/workflows/entrypoint_prerelease.yml b/.github/workflows/entrypoint_prerelease.yml index 6a0b444b..f7615349 100644 --- a/.github/workflows/entrypoint_prerelease.yml +++ b/.github/workflows/entrypoint_prerelease.yml @@ -8,10 +8,19 @@ on: - ".github/**" - "**.md" +# creating a separate concurrency group for each PR +# so that our "PR checks" are always running for the latest commit in the PR +# and as PRs are updated we want to make sure "in progress" jobs are killed so we don't waste resources +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + + jobs: preprod_test: name: Pre-prod code testing runs-on: ubuntu-latest + if: github.event.pull_request.draft == false steps: - uses: actions/checkout@master with: @@ -35,6 +44,7 @@ jobs: build: name: Build Python 🐍 distributions runs-on: ubuntu-latest + if: github.event.pull_request.draft == false needs: code_test steps: - uses: actions/checkout@master