Skip to content

Conversation

@azmkercso
Copy link
Contributor

Issue

V2015636304

Description of Changes

With this change, failures will not be reported to CloudWatch if the build-target workflow is ran on a feature/staging branch.

Backporting

No backporting needed. For previous versioned branches, the condition is superfluous (always evaluates to true, no change in behaviour), only currently active feature/staging branches would need backporting.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@azmkercso azmkercso requested a review from a team as a code owner November 28, 2025 11:23
- name: Check if protected branch
id: check-branch
run: |
if [[ "$GITHUB_REF_NAME" == "main" ]] || [[ "$GITHUB_REF_NAME" =~ ^[0-9]+\.[0-9]+$ ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: We could extract the the ref_name as an environments variable - GH_REF_NAME: ${{ github.ref_name }}

@azmkercso azmkercso merged commit 42de837 into aws:main Nov 28, 2025
1 check passed
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