Skip to content

Conversation

@antonym
Copy link
Member

@antonym antonym commented Jun 12, 2025

Summary

  • Added fetch-tags: true to checkout action to ensure git tags are available during CI runs
  • Added error handling to git rev-list command to prevent script failure when referenced tag doesn't exist

Problem

The release workflow was failing with exit code 129 on the git rev-list command when trying to find commit SHA for version tags that weren't available in the CI environment.

Solution

  1. Fetch tags explicitly: Added fetch-tags: true to the checkout action to ensure all git tags are downloaded
  2. Error handling: Modified the git rev-list command to gracefully handle missing tags by returning empty string instead of failing

Test plan

  • Verified the workflow syntax is correct
  • Confirmed the error handling works locally
  • Test in CI environment to ensure the build completes successfully

- Add fetch-tags: true to ensure git tags are available during checkout
- Add error handling to git rev-list command to prevent script failure
  when referenced tag doesn't exist in the repository

Resolves the 'git rev-list' exit code 129 error in the release workflow.
@antonym antonym merged commit 2f85e90 into master Jun 12, 2025
3 checks passed
@antonym antonym deleted the ci-workflow-fix branch June 12, 2025 06:11
antonym added a commit that referenced this pull request Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant