Skip to content

Commit

Permalink
Fix conditional statement for release
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley committed Apr 16, 2024
1 parent fc48d92 commit 0b163ba
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
name: Publish Python Package

on:
release:
types: [created]
workflow_run:
workflows: ["Run Tests"]
workflows: ["Run Tests"]
types:
- completed
branches:
- master
if: ${{ github.event.workflow_run.conclusion == 'success' }}

release:
types: [created]

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -31,6 +29,7 @@ jobs:
pip install --upgrade pip
pip install -e '.[test]'
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
needs: [test]
environment: release
Expand Down

0 comments on commit 0b163ba

Please sign in to comment.