diff --git a/.github/scripts/acquire-lock.js b/.github/scripts/acquire-lock.js index 2d42197..0f182a0 100644 --- a/.github/scripts/acquire-lock.js +++ b/.github/scripts/acquire-lock.js @@ -15,7 +15,7 @@ configureGit(); (async () => { while (true) { try { - cp.execSync('git branch -D workflow-lock'); + cp.execSync('git branch -D workflow-lock || true'); cp.execSync('git checkout -b workflow-lock'); cp.execSync('git commit --allow-empty -m "Acquire lock"'); cp.execSync('git push -u origin workflow-lock');