From 1b3f2f10cc55a3e6d174d83d556f7e5a2a2c2e16 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Wed, 15 Feb 2023 21:49:52 +0000 Subject: [PATCH] Update setupClaCheck.ts --- src/setupClaCheck.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/setupClaCheck.ts b/src/setupClaCheck.ts index dc47d920..365bab39 100644 --- a/src/setupClaCheck.ts +++ b/src/setupClaCheck.ts @@ -52,7 +52,9 @@ export async function setupClaCheck() { ) } } catch (err) { - core.setFailed(`Could not update the JSON file: ${err.message}`) + let extraInfo = ''; + if (err.message.includes('Changes must be made through a pull request')) extraInfo = ' (The branch appears to be protected - please disable the protection)'; + core.setFailed(`Could not update the JSON file: ${err.message}${extraInfo}`) } }