Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Run post-job steps even when action has been cancelled #35396

Open
Labels
topic/gitea-actionsrelated to the actions of Gitea type/proposalThe new feature has not been accepted yet but needs to be discussed first.
@Naxdy

Description

Feature Description

GitHub Actions runs its post-job steps even when the action has been cancelled (regardless of whether due to concurrency, or manual cancellation). However, Gitea Actions immediately aborts everything, including the post-job actions.

This can be undesirable in a lot of situations, when post-job actions are required for job cleanup, regardless of success state.

The feature request is to amend the behavior of Gitea Actions to also execute post-job steps even if the action has been cancelled.


As a real-world example, we have a build process that pushes successful build artifacts to a binary cache as a post action. This should happen regardless of whether or not the entire build succeeds, since even if the build fails, artifacts of intermittent successful steps will still be pushed, allowing subsequent runs to complete faster.

As of right now, if the build fails, the behavior is as expected, since post-job steps do run when a previous step has failed. However, if the build is cancelled (e.g. because we can reasonably foresee that the build will fail, or a new revision has been pushed), the post-job steps are not executed, and we miss out on uploading our artifacts to our binary cache.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/gitea-actionsrelated to the actions of Gitea type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /