Skip to content

Commit 4fba043

Browse files
committed
duplicated
1 parent f4f0a47 commit 4fba043

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

.github/workflows/deploy-semantic-release.yaml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,6 @@ jobs:
5252
changelog: "false"
5353
root_options: ${{ inputs.debug && '-vv --noop' || '-v --noop' }}
5454

55-
- name: Check Next Version (Dry Run)
56-
id: check_next_version
57-
if: steps.set_mode.outputs.is_dry_run == 'true' && steps.release_dryrun.outputs.version == ''
58-
uses: python-semantic-release/python-semantic-release@v9.20.0
59-
with:
60-
github_token: ${{ secrets.GITHUB_TOKEN }}
61-
push: "false"
62-
commit: "false"
63-
tag: "false"
64-
changelog: "false"
65-
root_options: "${{ inputs.debug && '-vv --noop' || '-v --noop' }}"
66-
6755
- name: Extract Next Version Info
6856
id: extract_next_version
6957
if: steps.set_mode.outputs.is_dry_run == 'true' && steps.release_dryrun.outputs.version == ''
@@ -124,17 +112,10 @@ jobs:
124112
VERSION="${{ steps.release_dryrun.outputs.version || steps.release.outputs.version }}"
125113
TAG="${{ steps.release_dryrun.outputs.tag || steps.release.outputs.tag }}"
126114
127-
# If no version from release outputs, try to get from check_next_version step
115+
# If no version from release outputs, try to get from extract_next_version step
128116
if [ "$IS_DRY_RUN" = "true" ] && [ -z "$VERSION" ]; then
129-
VERSION="${{ steps.check_next_version.outputs.next_version }}"
130-
TAG="${{ steps.check_next_version.outputs.next_tag }}"
131-
fi
132-
133-
# If still no version, use fallback
134-
if [ -z "$VERSION" ]; then
135-
CURRENT_VERSION=$(grep -m 1 'version = "' pyproject.toml | awk -F'"' '{print $2}' | sed 's/^v//')
136-
VERSION="${CURRENT_VERSION}.dev0"
137-
TAG="v${VERSION}"
117+
VERSION="${{ steps.extract_next_version.outputs.next_version }}"
118+
TAG="${{ steps.extract_next_version.outputs.next_tag }}"
138119
fi
139120
140121
# Display trigger information

0 commit comments

Comments
 (0)