Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 02f36ca

Browse filesBrowse files
committed
tools: do not throw on missing create-release-proposal.sh
PR-URL: #56695 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>
1 parent e1e1200 commit 02f36ca
Copy full SHA for 02f36ca

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Collapse file

‎.github/workflows/create-release-proposal.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/create-release-proposal.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ jobs:
7171
git config --local user.name "Node.js GitHub Bot"
7272
7373
- name: Start git node release prepare
74+
# `git update-index` tells git to ignore future changes to the `.sh` file,
75+
# `|| true` is there to ignore the error if such file doesn't exist yet.
7476
# The curl command is to make sure we run the version of the script corresponding to the current workflow.
7577
run: |
76-
git update-index --assume-unchanged tools/actions/create-release-proposal.sh
78+
git update-index --assume-unchanged tools/actions/create-release-proposal.sh || true
7779
curl -fsSLo tools/actions/create-release-proposal.sh https://github.com/${GITHUB_REPOSITORY}/raw/${GITHUB_SHA}/tools/actions/create-release-proposal.sh
7880
./tools/actions/create-release-proposal.sh "${RELEASE_DATE}" "${RELEASE_LINE}" "${GITHUB_ACTOR}"
7981
env:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.