Skip to content

Commit d5c3f21

Browse files
committed
Change build process for PR build
1 parent 2e4d1f5 commit d5c3f21

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/pr-preview.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ jobs:
4747
if: steps.version_check.outputs.exists != 'true'
4848
run: |
4949
hatch build
50-
- name: Reset __version__ to base version
51-
if: always()
52-
run: python .hooks/sync_version.py
5350
5451
- name: Publish to Test PyPI
5552
if: steps.version_check.outputs.exists != 'true'

.hooks/sync_version.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ def main():
3535
if hatch_version != current_version:
3636
print(f"🔁 Updating version: {current_version}{hatch_version}")
3737
update_version(hatch_version)
38-
return 1 if not full_mode else 0 # Fail locally to force re-add, but not in CI
38+
39+
# In --dev mode, we don't fail — we expect this to update it
40+
return 0 if full_mode else 1
3941

4042
print(f"✅ Version is in sync: {hatch_version}")
4143
return 0

socketsecurity/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__author__ = 'socket.dev'
2-
__version__ = '2.0.19'
2+
__version__ = '2.0.20'

0 commit comments

Comments
 (0)