Skip to content

Commit

Permalink
tools: do not throw on missing create-release-proposal.sh
Browse files Browse the repository at this point in the history
PR-URL: #56695
Reviewed-By: Marco Ippolito <[email protected]>
Reviewed-By: Pietro Marchini <[email protected]>
  • Loading branch information
aduh95 committed Jan 31, 2025
1 parent 94669e1 commit 80217c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/create-release-proposal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 80217c9

Please sign in to comment.