Skip to content

Chore: [AEA-0000] - fix ci workflow#3

Merged
anthony-nhs merged 1 commit intomainfrom
fix_ci_workflow
Mar 30, 2026
Merged

Chore: [AEA-0000] - fix ci workflow#3
anthony-nhs merged 1 commit intomainfrom
fix_ci_workflow

Conversation

@anthony-nhs
Copy link
Copy Markdown
Collaborator

Summary

  • Routine Change

Details

  • fix ci workflow

Copilot AI review requested due to automatic review settings March 30, 2026 16:05
@anthony-nhs anthony-nhs merged commit 08241b8 into main Mar 30, 2026
1 check passed
@github-actions
Copy link
Copy Markdown
Contributor

This PR is linked to a ticket in an NHS Digital JIRA Project. Here's a handy link to the ticket:

AEA-0000

Copy link
Copy Markdown

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

This PR fixes the CI workflow configuration so the tag_release reusable workflow receives an appropriate branch_name value when the workflow runs on push to main.

Changes:

  • Update branch_name in .github/workflows/ci.yml from a PR-only context expression to a main value for push-based runs.

Comment thread .github/workflows/ci.yml
dry_run: true
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
branch_name: ${{ github.event.pull_request.head.ref }}
branch_name: main
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

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

branch_name is hardcoded to main, which can drift if the workflow’s trigger branches change or if the default branch is renamed. Consider deriving it from the event context (e.g., github.ref_name) so the value always matches the branch the workflow ran on.

Suggested change
branch_name: main
branch_name: ${{ github.ref_name }}

Copilot uses AI. Check for mistakes.
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