From eabbd26a59c26641f2e034064a27cf30c9952b9f Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 22 Jan 2025 12:34:29 +0100 Subject: [PATCH] tools: do not throw on missing `create-release-proposal.sh` --- .github/workflows/create-release-proposal.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-release-proposal.yml b/.github/workflows/create-release-proposal.yml index 55bc892eb909a4..33426bdcda4a5b 100644 --- a/.github/workflows/create-release-proposal.yml +++ b/.github/workflows/create-release-proposal.yml @@ -71,9 +71,11 @@ jobs: git config --local user.name "Node.js GitHub Bot" - name: Start git node release prepare + # `git update-index` tells git to ignore future changes to the `.sh` file, + # `|| true` is there to ignore the error if such file doesn't exist yet. # The curl command is to make sure we run the version of the script corresponding to the current workflow. run: | - git update-index --assume-unchanged tools/actions/create-release-proposal.sh + git update-index --assume-unchanged tools/actions/create-release-proposal.sh || true curl -fsSLo tools/actions/create-release-proposal.sh https://github.com/${GITHUB_REPOSITORY}/raw/${GITHUB_SHA}/tools/actions/create-release-proposal.sh ./tools/actions/create-release-proposal.sh "${RELEASE_DATE}" "${RELEASE_LINE}" "${GITHUB_ACTOR}" env: