diff --git a/.github/workflows/release-others.yml b/.github/workflows/release-others.yml index 62c861d1..f2b4b7e2 100644 --- a/.github/workflows/release-others.yml +++ b/.github/workflows/release-others.yml @@ -36,7 +36,7 @@ jobs: environment: publish runs-on: ubuntu-22.04 permissions: - contents: read + contents: write id-token: write steps: @@ -100,6 +100,9 @@ jobs: version_native=$(cargo pkgid | cut -d "#" -f2) echo "version_native=$version_native" >> $GITHUB_OUTPUT + version_python=$(grep '^version = ' python/pyproject.toml | sed -E 's/version = "(.*)"/\1/') + echo "version_python=$version_python" >> $GITHUB_OUTPUT + - name: Setup git run: | git config user.name "devolutionsbot" @@ -175,8 +178,8 @@ jobs: - name: Tag Python Release if: ${{ inputs.publish_python && !inputs.publish_dry_run }} run: | - git tag "python-v${{ steps.version.outputs.version_native }}" - git push origin "python-v${{ steps.version.outputs.version_native }}" + git tag "python-v${{ steps.version.outputs.version_python }}" + git push origin "python-v${{ steps.version.outputs.version_python }}" - name: Publish Kotlin to Cloudsmith if: ${{ inputs.publish_kotlin && !inputs.publish_dry_run }}