Skip to content

ci: allow optional upstream_tag override in Figma release workflow - #19

Merged
alexeagle merged 1 commit into
masterfrom
figma-release-upstream-tag-override
Aug 13, 2026
Merged

ci: allow optional upstream_tag override in Figma release workflow#19
alexeagle merged 1 commit into
masterfrom
figma-release-upstream-tag-override

Conversation

@alexeagle

Copy link
Copy Markdown

Summary

  • Add optional upstream_tag workflow input for releases cut before upstream ships the final tag (e.g. 8.8.0rc1 instead of 8.8.0).
  • Use the resolved tag for upstream ancestry verification, host Bazel (USE_BAZEL_VERSION), and release notes.

Fixes the failure in https://github.com/figma/bazel/actions/runs/31218370196 where the workflow tried to fetch nonexistent refs/tags/8.8.0.

Test plan

  • Merge to master
  • Run Figma Bazel Release with ref=8.8.0-figma and upstream_tag=8.8.0rc1
  • Confirm Resolve version succeeds and build jobs use Bazelisk 8.8.0rc1
  • Confirm normal releases still work with upstream_tag left blank (defaults to derived base version)

When cutting a fork release before upstream ships the final tag (e.g. 8.8.0rc1
instead of 8.8.0), pass upstream_tag to verify ancestry and select host Bazel.

@alexeagle alexeagle left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks Cursor

@alexeagle
alexeagle merged commit a6781ba into master Aug 13, 2026
4 checks passed

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit ecc26c0. Configure here.

echo "## Upstream base"
echo
echo "Forked from upstream Bazel **${base}** ([bazelbuild/bazel@\`${upstream_sha}\`](https://github.com/bazelbuild/bazel/releases/tag/${base}))."
echo "Forked from upstream Bazel **${base}** ([bazelbuild/bazel@\`${upstream_sha}\`](https://github.com/bazelbuild/bazel/releases/tag/${upstream_tag}))."

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broken upstream compare link

Low Severity

When upstream_tag differs from the derived base version, release notes still build the compare URL and the “identical to upstream” text from base. For the intended pre-final-tag case that makes the delta link point at a nonexistent upstream tag, even though the notes elsewhere already use the resolved tag.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit ecc26c0. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant