From 900cbfd759cda0efe93f49d0f07e5525152ac8a6 Mon Sep 17 00:00:00 2001 From: Robert Wolff Date: Mon, 13 Jan 2025 10:17:05 +0100 Subject: [PATCH] fix actions conditionals with missing quotes --- .forgejo/workflows/links.yml | 2 +- docs/user/actions.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/links.yml b/.forgejo/workflows/links.yml index 15a2110b..7f2e1193 100644 --- a/.forgejo/workflows/links.yml +++ b/.forgejo/workflows/links.yml @@ -27,7 +27,7 @@ jobs: run: ./lychee docs v7/docs --format markdown - name: Update issue - if: !cancelled() + if: '!cancelled()' uses: https://github.com/peter-evans/create-issue-from-file@v5.0.0 with: title: Dead links report diff --git a/docs/user/actions.md b/docs/user/actions.md index a89c35c5..c7397b95 100644 --- a/docs/user/actions.md +++ b/docs/user/actions.md @@ -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