ci: trigger platform-api cloud release on push, not pull_request - #3312
Merged
renuka-fernando merged 1 commit intoAug 25, 2026
Conversation
Switch the Platform API cloud-release trigger from `pull_request: [closed]` to `push` on the release branches. A pull_request run for a PR opened from a fork gets no repository secrets, so merges of fork PRs failed with the webhook secrets unset. A push (which a merge produces) runs with full secret access and executes the workflow version on the pushed branch. Drop the now-unneeded merged-PR `if:` guard and the pull_request-specific BRANCH/COMMIT expressions in favour of github.ref_name / github.sha. Signed-off-by: Renuka Fernando <renukapiyumal@gmail.com>
renuka-fernando
requested review from
AnuGayan,
Arshardh,
CrowleyRajapakse,
HeshanSudarshana,
HiranyaKavishani,
Krishanx92,
PasanT9,
RakhithaRR,
Tharsanan1,
VirajSalaka,
ashera96,
chamilaadhi,
dushaniw,
hisanhunais,
malinthaprasan,
pubudu538,
senthuran16,
tgtshanika,
tharikaGitHub and
tharindu1st
as code owners
August 25, 2026 10:31
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ashera96
approved these changes
Aug 25, 2026
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Follow-up to #3311. The
Platform API Cloud Releaseworkflow triggered onpull_request: [closed], but apull_requestrun for a PR opened from a fork receives no repository secrets. Merges of fork PRs therefore failed the pre-flight check withAZURE_WEBHOOK_URL/AZURE_WEBHOOK_SECRETunset, and only a manualworkflow_dispatchcould trigger the Azure build.Approach
pull_request: [closed]topushon the release branches (main,platform-api/v0.10.x). A merge produces a push, which runs with full secret access and executes the workflow version that lives on the pushed branch.if:guard.pull_request-specificBRANCH/COMMITexpressions withgithub.ref_name/github.sha, which are correct for bothpushandworkflow_dispatch.Related Issues
N/A — follow-up to #3311.
Automation tests
N/A — CI workflow change only.
Security checks
secrets.AZURE_WEBHOOK_SECRET.Checklist