Skip to content

Commit 6b54d1f

Browse files
committed
ci: run release only if all workflows pass
1 parent 2024136 commit 6b54d1f

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: Create Release
22

33
on:
4-
push:
5-
branches:
6-
- 'main'
4+
workflow_run:
5+
workflows: [ "CI and Release" ] # Ensure this matches the name of your main workflow
6+
types:
7+
- completed
78

89
jobs:
910
release:
1011
runs-on: ubuntu-latest
11-
if: github.ref == 'refs/heads/main'
12+
if: ${{ github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/main' }}
1213
steps:
1314
- uses: actions/checkout@v4
1415
with:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "python-template"
3-
version = "0.5.36"
3+
version = "0.5.37"
44
description = "Used to templatize python projects."
55
authors = ["Loïc Motheu <lmotheu@gmail.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)