Skip to content

Commit 370b802

Browse files
committed
Remove static version change check
1 parent 74fb08e commit 370b802

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/build-pypi-package.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,7 @@ jobs:
5252
- name: Install Poetry & dynamic versioning plugin
5353
run: |
5454
pip install "poetry>=1.8.0" "poetry-dynamic-versioning[plugin]>=1.0.0"
55-
- name: Check version change
56-
uses: raven-wing/did-python-package-version-change@v1
57-
id: did-version-change
5855
- name: Download built package
59-
if: steps.did-version-change.outputs.is_version_greater == 'true'
6056
uses: actions/download-artifact@v4
6157
with:
6258
name: Packages
@@ -75,10 +71,10 @@ jobs:
7571
echo "exists=false" >> $GITHUB_OUTPUT
7672
fi
7773
- name: Publish to PyPI
78-
if: steps.did-version-change.outputs.is_version_greater == 'true' && steps.version_check.outputs.exists == 'false'
74+
if: steps.version_check.outputs.exists == 'false'
7975
uses: pypa/gh-action-pypi-publish@release/v1
8076
- name: Retry build by creating empty commit
81-
if: steps.did-version-change.outputs.is_version_greater == 'true' && steps.version_check.outputs.exists == 'true'
77+
if: steps.version_check.outputs.exists == 'true'
8278
run: |
8379
git config --global user.email "[email protected]"
8480
git config --global user.name "CI Bot"
@@ -109,11 +105,7 @@ jobs:
109105
- name: Install Poetry & dynamic versioning plugin
110106
run: |
111107
pip install "poetry>=1.8.0" "poetry-dynamic-versioning[plugin]>=1.0.0"
112-
- name: Check version change
113-
uses: raven-wing/did-python-package-version-change@v1
114-
id: did-version-change
115108
- name: Download built package
116-
if: steps.did-version-change.outputs.is_version_greater == 'true'
117109
uses: actions/download-artifact@v4
118110
with:
119111
name: Packages
@@ -132,12 +124,12 @@ jobs:
132124
echo "exists=false" >> $GITHUB_OUTPUT
133125
fi
134126
- name: Publish to Test PyPI
135-
if: steps.did-version-change.outputs.is_version_greater == 'true' && steps.version_check.outputs.exists == 'false'
127+
if: steps.version_check.outputs.exists == 'false'
136128
uses: pypa/gh-action-pypi-publish@release/v1
137129
with:
138130
repository-url: https://test.pypi.org/legacy/
139131
- name: Retry build by creating empty commit
140-
if: steps.did-version-change.outputs.is_version_greater == 'true' && steps.version_check.outputs.exists == 'true'
132+
if: steps.version_check.outputs.exists == 'true'
141133
run: |
142134
git config --global user.email "[email protected]"
143135
git config --global user.name "CI Bot"

0 commit comments

Comments
 (0)