Skip to content

[ci] Fix publish version update in container#63

Merged
tianyi-ge merged 1 commit into
Ascend:masterfrom
tianyi-ge:codex/fix-publish-version-update
Jun 2, 2026
Merged

[ci] Fix publish version update in container#63
tianyi-ge merged 1 commit into
Ascend:masterfrom
tianyi-ge:codex/fix-publish-version-update

Conversation

@tianyi-ge
Copy link
Copy Markdown
Collaborator

Summary

Fix the publish workflow version update step in the container environment.

Changes

  • Pass the release version from GITHUB_REF directly to ci/update_version.py.
  • Pass the commit SHA from GITHUB_SHA instead of calling git rev-parse HEAD inside the container.

Why

The self-hosted container runner can fail when running git commands inside the container. Using GitHub Actions environment variables avoids that dependency.

Validation

  • Locally verified that ci/update_version.py writes the expected version and commit when given GITHUB_REF and GITHUB_SHA values.

Signed-off-by: tianyi-huawei <getianyi1@huawei.com>
@tianyi-ge tianyi-ge changed the title Fix publish version update in container [ci] Fix publish version update in container Jun 2, 2026
@ascend-robot
Copy link
Copy Markdown

CLA Signature Pass

tianyi-ge, thanks for your pull request. All authors of the commits have signed the CLA. 👍

@tianyi-ge tianyi-ge merged commit 15784db into Ascend:master Jun 2, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants