Skip to content

fix(actions): preserve caller event in reusable workflows - #38874

Open
AbhinavSivanandhan wants to merge 1 commit into
go-gitea:mainfrom
AbhinavSivanandhan:fix/workflow-call-event-name
Open

fix(actions): preserve caller event in reusable workflows#38874
AbhinavSivanandhan wants to merge 1 commit into
go-gitea:mainfrom
AbhinavSivanandhan:fix/workflow-call-event-name

Conversation

@AbhinavSivanandhan

Copy link
Copy Markdown

Reusable workflows currently replace the caller's original event name with workflow_call, causing conditions such as gitea.event_name == 'push' to evaluate incorrectly.

Preserve the original trigger event for reusable workflow parsing and evaluation. For runner compatibility, older runners continue receiving workflow_call, while runners advertising workflow-call-original-event receive the original event name.

Fixes #38705

Companion runner PR: https://gitea.com/gitea/runner/pulls/1162

Assisted-by: ChatGPT:GPT-5.6 Sol

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 11, 2026
@github-actions github-actions Bot added topic/gitea-actions related to the actions of Gitea type/bug labels Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. topic/gitea-actions related to the actions of Gitea type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

workflow_call: event payload should be same as caller

2 participants