|
52 | 52 | changelog: "false" |
53 | 53 | root_options: ${{ inputs.debug && '-vv --noop' || '-v --noop' }} |
54 | 54 |
|
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 | | - |
67 | 55 | - name: Extract Next Version Info |
68 | 56 | id: extract_next_version |
69 | 57 | if: steps.set_mode.outputs.is_dry_run == 'true' && steps.release_dryrun.outputs.version == '' |
@@ -124,17 +112,10 @@ jobs: |
124 | 112 | VERSION="${{ steps.release_dryrun.outputs.version || steps.release.outputs.version }}" |
125 | 113 | TAG="${{ steps.release_dryrun.outputs.tag || steps.release.outputs.tag }}" |
126 | 114 |
|
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 |
128 | 116 | 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 }}" |
138 | 119 | fi |
139 | 120 |
|
140 | 121 | # Display trigger information |
|
0 commit comments