Skip to content

Commit e543140

Browse files
authored
Fix workflows (#468)
Signed-off-by: Asher Foa <[email protected]>
1 parent bed0e32 commit e543140

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/pre-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Pre-Release
22
on:
33
push:
44
branches:
@@ -13,6 +13,12 @@ jobs:
1313
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
16+
- name: Check if version is dev
17+
run: |
18+
if ! grep -q "\.dev\d" django_prometheus/__init__.py; then
19+
echo "Version does not contain 'dev', skipping pre-release"
20+
exit 1
21+
fi
1622
- name: Set up Python 3.9
1723
uses: actions/setup-python@v5
1824
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Release To PyPI
22
on:
33
push:
44
tags:

0 commit comments

Comments
 (0)