Skip to content

Commit

Permalink
Run preprod-test for non-draft PR only
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramelac committed Feb 28, 2024
1 parent f536111 commit 1f96f3a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/entrypoint_prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 1f96f3a

Please sign in to comment.