diff options
author | Marco Ippolito <marcoippolito54@gmail.com> | 2023-04-10 21:38:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 19:38:08 +0000 |
commit | c2b54fb9005b356fbd0ba0290f12498c2a082241 (patch) | |
tree | a982c27b6c850ac6e114191f99acbd85d2a6cf4f /.github/workflows | |
parent | 9d9cf11a4bf8cbef2ddea78e7f0bb5579fbbfb9e (diff) | |
download | node-new-c2b54fb9005b356fbd0ba0290f12498c2a082241.tar.gz |
tools: move update-acorn.sh to dep_updaters and create maintaining md
PR-URL: https://github.com/nodejs/node/pull/47382
Refs: https://github.com/nodejs/security-wg/issues/828
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/tools.yml | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml index e3af7ab3a1..5ba655e9d8 100644 --- a/.github/workflows/tools.yml +++ b/.github/workflows/tools.yml @@ -95,22 +95,18 @@ jobs: subsystem: deps label: dependencies run: | - NEW_VERSION=$(npm view acorn dist-tags.latest) - CURRENT_VERSION=$(node -p "require('./deps/acorn/acorn/package.json').version") - if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then - echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV - ./tools/update-acorn.sh - fi + ./tools/dep_updaters/update-acorn.sh > temp-output + cat temp-output + tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true + rm temp-output - id: acorn-walk subsystem: deps label: dependencies run: | - NEW_VERSION=$(npm view acorn-walk dist-tags.latest) - CURRENT_VERSION=$(node -p "require('./deps/acorn/acorn-walk/package.json').version") - if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then - echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV - ./tools/update-acorn-walk.sh - fi + ./tools/dep_updaters/update-acorn-walk.sh > temp-output + cat temp-output + tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true + rm temp-output - id: libuv subsystem: deps label: dependencies |