Skip to content

fix(actions): report individual step status in workflow job API response (#37592)#37598

Merged
silverwind merged 1 commit into
go-gitea:release/v1.26from
GiteaBot:backport-37592-v1.26
May 7, 2026
Merged

fix(actions): report individual step status in workflow job API response (#37592)#37598
silverwind merged 1 commit into
go-gitea:release/v1.26from
GiteaBot:backport-37592-v1.26

Conversation

@GiteaBot
Copy link
Copy Markdown
Collaborator

@GiteaBot GiteaBot commented May 7, 2026

Backport #37592 by @bircni

When a workflow job failed, the API response reported all steps as failed — even steps that had completed successfully before the failing step. ToActionWorkflowJob was calling ToActionsStatus(job.Status) for every step instead of ToActionsStatus(step.Status), so the job's overall conclusion was propagated to each step.

Each ActionTaskStep has its own Status field that tracks the actual outcome of that step independently of the job result.

…nse (go-gitea#37592)

When a workflow job failed, the API response reported all steps as
failed — even steps that had completed successfully before the failing
step. `ToActionWorkflowJob` was calling `ToActionsStatus(job.Status)`
for every step instead of `ToActionsStatus(step.Status)`, so the job's
overall conclusion was propagated to each step.

Each `ActionTaskStep` has its own `Status` field that tracks the actual
outcome of that step independently of the job result.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
@GiteaBot GiteaBot added the topic/gitea-actions related to the actions of Gitea label May 7, 2026
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 7, 2026
@GiteaBot GiteaBot added this to the 1.26.2 milestone May 7, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels May 7, 2026
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 7, 2026
@silverwind silverwind merged commit e10da87 into go-gitea:release/v1.26 May 7, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/gitea-actions related to the actions of Gitea

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants