Skip to content

UID2-7002 Use 'publish-major' env instead of hardcoded approver list#2542

Merged
swibi-ttd merged 2 commits into
mainfrom
swi-UID2-6763-publish-major-env
May 14, 2026
Merged

UID2-7002 Use 'publish-major' env instead of hardcoded approver list#2542
swibi-ttd merged 2 commits into
mainfrom
swi-UID2-6763-publish-major-env

Conversation

@swibi-ttd

Copy link
Copy Markdown
Contributor

Replaces trstringer/manual-approval steps in both publish-all-operators.yaml and publish-public-operator-docker-image.yaml with env-gated check_major jobs using the new publish-major environment.

Behaviour preserved:

  • Major release dispatched via publish-all-operators.yaml → 2 approval prompts (parent + leaf), same as before
  • Major denied at either gate blocks all downstream builds
  • Major dispatched directly on publish-public-operator-docker-image.yaml → 1 prompt (leaf)
  • Non-Major / scheduled patch → no gates

@swibi-ttd swibi-ttd changed the title UID2-6763 Use 'publish-major' env instead of hardcoded approver list UID2-7002 Use 'publish-major' env instead of hardcoded approver list May 14, 2026
@swibi-ttd swibi-ttd force-pushed the swi-UID2-6763-publish-major-env branch from 5118015 to 10b4446 Compare May 14, 2026 03:57
runs-on: ubuntu-latest
environment: ${{ inputs.release_type == 'Major' && 'publish-major' || '' }}
steps:
- run: echo "Major release approved"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this will always print "Major release approved" even if its not a major release, maybe make this step conditional on whether its a major release?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

good catch, would have been scary to see that if intention was a Patch release lol

have updated to only print that on a Major release

@swibi-ttd swibi-ttd merged commit 1a13831 into main May 14, 2026
9 checks passed
@swibi-ttd swibi-ttd deleted the swi-UID2-6763-publish-major-env branch May 14, 2026 04:14
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