]> source.dussan.org Git - gitea.git/commit
The job should always run when `if` is `always()` (#29464)
authorZettat123 <zettat123@gmail.com>
Wed, 28 Feb 2024 10:54:44 +0000 (18:54 +0800)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 10:54:44 +0000 (11:54 +0100)
commitd0fe6ea4e101198911383058a2e121e384934a9c
tree80389a23d0ac0d6ea0dc31220dfb02e8b10ad77b
parentd557fbc5a715a1920a2860cb04ae6c8fe2225182
The job should always run when `if` is `always()` (#29464)

Fix #27906

According to GitHub's
[documentation](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idneeds),
a job should always run when its `if` is `always()`

> If you would like a job to run even if a job it is dependent on did
not succeed, use the `always()` conditional expression in
`jobs.<job_id>.if`.

---------

Co-authored-by: Giteabot <teabot@gitea.io>
services/actions/job_emitter.go
services/actions/job_emitter_test.go