Skip to content

Commit

Permalink
Run release flow only if tests succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
IljaN committed Dec 5, 2024
1 parent 521b194 commit e1d3118
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Publish release
on:
push:
tags:
- "*.*.*"
workflow_run:
workflows: ["Test"]
types:
- completed
jobs:
publish-release:
if: startsWith(github.ref, 'refs/tags/')
if: ${{ github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.head_commit.message, 'refs/tags/') }}
name: "Publish release"
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit e1d3118

Please sign in to comment.