Skip to content

fix: pin upload-to-gh-release action to v8#2

Merged
aseguragonzalez merged 2 commits into
mainfrom
copilot/fix-release-workflow-action-version
May 6, 2026
Merged

fix: pin upload-to-gh-release action to v8#2
aseguragonzalez merged 2 commits into
mainfrom
copilot/fix-release-workflow-action-version

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 6, 2026

python-semantic-release/upload-to-gh-release has no v9 tag — the release workflow was failing at resolution time before any steps executed.

Change

# .github/workflows/release.yml
- uses: python-semantic-release/upload-to-gh-release@v8  # was @v9

upload-to-gh-release is a separate repo from python-semantic-release/python-semantic-release and does not share its versioning cadence; v8 is the latest published major tag.

Original prompt

Create a PR to fix the failing GitHub Actions job in aseguragonzalez/python-seedwork.

Context:

  • A workflow run failed immediately with:
    Unable to resolve action python-semantic-release/upload-to-gh-release@v9, unable to find version v9
  • The failing workflow is .github/workflows/release.yml.
  • In commit ref 626e6e33c218963a02e5947fb2eded5b1d9334bb, the step "Upload artifacts to GitHub Release" uses:
    python-semantic-release/upload-to-gh-release@v9

Required change (Option A fix):

  • Update that step to use a valid major version tag that exists for that action.
  • Specifically change:
    uses: python-semantic-release/upload-to-gh-release@v9
    to:
    uses: python-semantic-release/upload-to-gh-release@v8

Acceptance criteria:

  • PR contains only the necessary change(s) to make the action resolvable.
  • Workflow YAML remains valid.
  • Commit/PR title should reflect fixing the release workflow action version.

The following is the prior conversation context from the user's chat exploration (may be truncated):

User: Please find a solution for this failing job. Use the logs, job definition, and any referenced files where the failure occurred. Keep your response focused on the solution and include code suggestions when appropriate.

Assistant: The job is failing before any steps run because GitHub Actions can’t resolve this action reference:

  • Error (from logs): Unable to resolve action python-semantic-release/upload-to-gh-release@v9, unable to find version v9
  • This points directly to your workflow step in .github/workflows/release.yml @ 626e6e33c218963a02e5947fb2eded5b1d9334bb, lines 54–60:
    • uses: python-semantic-release/upload-to-gh-release@v9

Fix

That repository/action doesn’t have a v9 tag (or it’s not published under that name), so the workflow can’t download it. Update the step to a valid ref.

Option A (recommended): pin to a published major tag that exists (likely v8)

Edit .github/workflows/release.yml:

- name: Upload artifacts to GitHub Release
  if: steps.release.outputs.released == 'true'
  uses: python-semantic-release/upload-to-gh-release@v8
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }}
    tag: ${{ steps.release.outputs.tag }}

Option B: pin to a specific commit SHA (most stable)

If you want maximum reproducibility, pin to the exact commit SHA from the python-semantic-release/upload-to-gh-release repository that you trust:

uses: python-semantic-release/upload-to-gh-release@<commit-sha>

Why this solves it

Your workflow already uses python-semantic-release/python-semantic-release@v9 (line 34), but the upload action is a different repository and is not guaranteed to share the same major version tags. Fixing the uses: ref to an existing tag/SHA will allow the job to proceed.

User: ok, can you create a PR with the Option A fix?

Assistant: I’ve kicked off the pull request creation for the Option A change; I’m waiting for your confirmation/response in the approval dialog so I can proceed and finalize the PR.

This pull request was created from Copilot chat.

Copilot AI changed the title [WIP] Fix GitHub Actions job by updating action version in release workflow fix: pin upload-to-gh-release action to v8 May 6, 2026
Copilot AI requested a review from aseguragonzalez May 6, 2026 20:35
@aseguragonzalez aseguragonzalez marked this pull request as ready for review May 6, 2026 20:37
Copilot AI review requested due to automatic review settings May 6, 2026 20:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes the release workflow failing at job start due to referencing a non-existent GitHub Action tag for python-semantic-release/upload-to-gh-release.

Changes:

  • Update .github/workflows/release.yml to use python-semantic-release/upload-to-gh-release@v8 instead of @v9, making the action reference resolvable again.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aseguragonzalez aseguragonzalez merged commit 574746f into main May 6, 2026
8 checks passed
@aseguragonzalez aseguragonzalez deleted the copilot/fix-release-workflow-action-version branch May 6, 2026 20:41
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.

3 participants