Skip to content

Commit 9be16d7

Browse files
committed
ci: Only release if pre-commit and tests were successful
1 parent b1ec53c commit 9be16d7

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
push:
88
branches:
99
- "main"
10+
workflow_call:
1011

1112
jobs:
1213
pre-commit:

.github/workflows/semantic-release.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ on:
66
- main
77

88
jobs:
9+
pre-commit:
10+
uses: ./.github/workflows/pre-commit.yml
11+
tests:
12+
uses: ./.github/workflows/tests.yml
913
release:
1014
name: Release
15+
needs: [pre-commit, tests]
1116
runs-on: ubuntu-latest
1217
permissions:
1318
contents: write

.github/workflows/tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
push:
88
branches:
99
- "main"
10+
workflow_call:
1011

1112
jobs:
1213
tests:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,6 @@ upload_to_pypi = true
7575
upload_to_release = true
7676
build_command = "uv build"
7777
version_source = "tag"
78+
tag_format = "{version}"
7879
commit_version_number = true
7980
commit_message = "RELEASE: {version}"

0 commit comments

Comments
 (0)