From 8f1dd2e83868028bad50661d4a34071776ea22fe Mon Sep 17 00:00:00 2001 From: byt3h3ad Date: Thu, 28 Dec 2023 19:38:31 +0530 Subject: [PATCH] new: continue-on-fail.md --- github/continue-on-fail.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 github/continue-on-fail.md diff --git a/github/continue-on-fail.md b/github/continue-on-fail.md new file mode 100644 index 0000000..51dafcd --- /dev/null +++ b/github/continue-on-fail.md @@ -0,0 +1,13 @@ +# Skipping a GitHub Actions step without failing + +I wanted to have a GitHub Action step run that might fail, but if it failed the rest of the steps should still execute and the overall run should be treated as a success. + +`continue-on-error: true` does exactly that: + +```yaml + - name: Task 1 + run: task1 + continue-on-error: true + - name: Task 2 + run: task2 +```