Skip to content

Commit da723e5

Browse files
Remove version smarts from github workflows (#360)
* remove version smarts in github workflow Signed-off-by: Andre Furlan <[email protected]> --------- Signed-off-by: Andre Furlan <[email protected]>
1 parent d46b501 commit da723e5

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

.github/workflows/publish-test.yml

-14
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,6 @@ jobs:
4040
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
4141
run: poetry install --no-interaction --no-root
4242
#----------------------------------------------
43-
# Get the current version and increment it (test-pypi requires a unique version number)
44-
#----------------------------------------------
45-
- name: Get next version
46-
uses: reecetech/[email protected]
47-
id: version
48-
with:
49-
scheme: semver
50-
increment: patch
51-
#----------------------------------------------
52-
# Tell poetry to update the version number
53-
#----------------------------------------------
54-
- name: Update pyproject.toml
55-
run: poetry version ${{ steps.version.outputs.major-version }}.${{ steps.version.outputs.minor-version }}.dev$(date +%s)
56-
#----------------------------------------------
5743
# Attempt push to test-pypi
5844
#----------------------------------------------
5945
- name: Build and publish to pypi

.github/workflows/publish.yml

-14
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,6 @@ jobs:
4141
- name: Install dependencies
4242
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
4343
run: poetry install --no-interaction --no-root
44-
#------------------------------------------------------------------------------------------------
45-
# Here we use version-increment to fetch the latest tagged version (we won't increment it though)
46-
#------------------------------------------------------------------------------------------------
47-
- name: Get next version
48-
uses: reecetech/[email protected]
49-
id: version
50-
with:
51-
scheme: semver
52-
increment: patch
53-
#-----------------------------------------------------------------------------
54-
# Tell poetry to use the `current-version` that was found by the previous step
55-
#-----------------------------------------------------------------------------
56-
- name: Update pyproject.toml
57-
run: poetry version ${{ steps.version.outputs.current-version }}
5844
#----------------------------------------------
5945
# Attempt push to test-pypi
6046
#----------------------------------------------

0 commit comments

Comments
 (0)