Skip to content

Remove invalid tag export from publish workflow#2686

Draft
fseldow with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-github-actions-build-job
Draft

Remove invalid tag export from publish workflow#2686
fseldow with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-github-actions-build-job

Conversation

Copilot AI commented Jul 7, 2026

Copy link
Copy Markdown

Description

The failing publish-ghcr build job was aborting in Get tag before any build/sign steps ran. The workflow wrote a bare version string to $GITHUB_ENV, which GitHub rejects as an invalid env-file entry.

  • Root cause

    • Get tag emitted a raw tag/version value into $GITHUB_ENV.
    • The current workflow does not consume TAG downstream.
  • Change

    • Remove the redundant Get tag step from .github/workflows/publish-package.yml.
    • Leave version/reference derivation in prepare, which already provides the values used by later steps.
- name: Get tag
  run: |
    echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

Which issue(s) does this PR resolve?

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Testing and verification

Validated the fix against the referenced Actions failure mode: this change removes the invalid env-file write that caused the job to fail before image build and signing.

Checklist

  • Does the affected code have corresponding tests?
  • Are the changes documented, not just with inline documentation, but also with conceptual documentation such as an overview of a new feature, or task-based documentation like a tutorial? Consider if this change should be announced on your project blog.
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have appropriate license header?

Post merge requirements

  • MAINTAINERS: manually trigger the "Publish Package" workflow after merging any PR that indicates Helm Chart Change

Copilot AI requested review from Copilot and removed request for Copilot July 7, 2026 05:52
Copilot AI requested review from Copilot and removed request for Copilot July 7, 2026 05:56
Copilot AI changed the title [WIP] Fix failing GitHub Actions job build Remove invalid tag export from publish workflow Jul 7, 2026
Copilot AI requested a review from fseldow July 7, 2026 05:57
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.

2 participants