Skip to content

Cron action incorrectly updates commit status of last commit #26971

@silverwind

Description

@silverwind

Description

Workflow: https://gitea.com/gitea/gitea-docusaurus/src/branch/main/.gitea/workflows/build-and-publish.yaml
Commit: https://gitea.com/gitea/gitea-docusaurus/commit/d3697c65d25e763ff9f36d1db1888610612ec0b5

Initially, the action ran as part of a push to the main branch and passed. Then the cron action ran on scheduled time, failed, but updated the commit status of the commit in the main branch which is incorrect. Cron actions should not update any commit status as they run disassociated from commits, so their results should only be visible in the actions log.

Gitea Version

main

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions