mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
tools: fix test426 updater
The previous version produces a commit that does pass the linter because of a too-long commit title. Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: https://github.com/nodejs/node/pull/63271 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
5824197d63
commit
971bc2dd51
1 file changed
+6
-5
@@ -17,10 +17,10 @@ fi
|
||||
TARBALL_URL=$(curl -fsIo /dev/null -w '%header{Location}' https://github.com/tc39/source-map-tests/archive/HEAD.tar.gz)
|
||||
SHA=$(basename "$TARBALL_URL")
|
||||
|
||||
if [ "$CURRENT_SHA" = "$SHA" ]; then
|
||||
echo "Already up-to-date"
|
||||
exit 0
|
||||
fi
|
||||
# shellcheck disable=SC1091
|
||||
. "$BASE_DIR/tools/dep_updaters/utils.sh"
|
||||
|
||||
compare_dependency_version "test426-fixtures" "$CURRENT_SHA" "$SHA"
|
||||
|
||||
rm -rf "$TARGET_DIR"
|
||||
mkdir "$TARGET_DIR"
|
||||
@@ -32,4 +32,5 @@ mv "$TMP_FILE" "$README"
|
||||
|
||||
# The last line of the script should always print the new version,
|
||||
# as we need to add it to $GITHUB_ENV variable.
|
||||
echo "NEW_VERSION=$SHA"
|
||||
NEW_VERSION=$(echo "$SHA" | head -c 39)
|
||||
echo "NEW_VERSION=$NEW_VERSION"
|
||||
Reference in new issue
Block a user