Skip to content

Commit ea2afd7

Browse files
authored
tweak workflow (#473)
1 parent 250138f commit ea2afd7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/pre-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ jobs:
1616
fetch-depth: 0
1717
- name: Check if version is dev
1818
run: |
19-
if ! grep -q "\.dev\d" django_prometheus/__init__.py; then
19+
if ! grep -q "dev" django_prometheus/__init__.py; then
2020
echo "Version does not contain 'dev', skipping pre-release"
2121
exit 1
22+
else
23+
echo "Version contains 'dev', proceeding with pre-release"
2224
fi
2325
- name: Set up Python 3.9
2426
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)