0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2025-03-13 09:58:07 -04:00

fix actions conditionals with missing quotes

(cherry picked from commit 900cbfd759)
This commit is contained in:
Robert Wolff 2025-01-13 10:17:05 +01:00
parent 0ecb957fca
commit acedbfd224

View file

@ -110,8 +110,8 @@ In a `workflow` file strings that look like `${{ ... }}` are evaluated by the `F
Can be used in `if:` conditionals on jobs and steps.
- `success()`. returns true when none of the previous jobs/steps have failed or been canceled.
- `always()`. causes the job/step to always execute, and returns true, even when canceled. If you want to run a job/step regardless of its success or failure, use the recommended alternative: **!cancelled()**.
- `success()`. returns true when none of the previous jobs/steps have failed or been cancelled.
- `always()`. causes the job/step to always execute, and returns true, even when cancelled. If you want to run a job/step regardless of its success or failure, use the recommended alternative: `'!cancelled()'` (the expression must be enclosed by quotes to not be interpreted as YAML tag).
- `failure()`. returns true when any previous step/job has failed.
### Functions