GeezerVison is showing github.com — tools: do not throw on missing `create-release-proposal.sh` · nodejs/node@d6469b5
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/create-release-proposal.yml +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
71 | 71 | git config --local user.name "Node.js GitHub Bot" |
72 | 72 |
|
73 | 73 | - 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. |
74 | 76 | # The curl command is to make sure we run the version of the script corresponding to the current workflow. |
75 | 77 | 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 |
77 | 79 | curl -fsSLo tools/actions/create-release-proposal.sh https://github.com/${GITHUB_REPOSITORY}/raw/${GITHUB_SHA}/tools/actions/create-release-proposal.sh |
78 | 80 | ./tools/actions/create-release-proposal.sh "${RELEASE_DATE}" "${RELEASE_LINE}" "${GITHUB_ACTOR}" |
79 | 81 | env: |
|