From 2bccdcc981d388e673be9cc61d35725fcc75c192 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Tue, 19 Sep 2023 18:23:41 +1200 Subject: [PATCH] FIX Don't mark missing CI as a workflow failure (#5) --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index b02f88d..2a9e9dc 100644 --- a/action.yml +++ b/action.yml @@ -65,7 +65,10 @@ runs: done if [[ $FOUND == 0 ]]; then echo "Could not workflow file for branch $BRANCH - tried $FILENAMES" - exit 1 + # If there's no CI file, then this workflow has worked as expected. Don't mark it as a failure. + # This allows us to do auto-merge ups for things like developer-docs which don't have CI + # without adding a dummy CI which could result in a false sense of security when reviewing PRs etc. + exit 0 fi - name: Send API request