Skip to content

Commit

Permalink
tools: fix nghttp3 updater script
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 authored and nodejs-github-bot committed Nov 26, 2024
1 parent 7a4cd77 commit 1e35746
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ permissions:

jobs:
tools-deps-update:
if: github.repository == 'nodejs/node'
if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
strategy:
fail-fast: false # Prevent other jobs from aborting if one fails
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-wpt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
ncu-config set owner "${GITHUB_REPOSITORY_OWNER}"
ncu-config set repo "$(echo "$GITHUB_REPOSITORY" | cut -d/ -f2)"
env:
USERNAME: ${{ secrets.JENKINS_USER || github.actor }}
USERNAME: ${{ secrets.JENKINS_USER }}
GH_TOKEN: ${{ secrets.GH_USER_TOKEN }}

- name: Update WPT for subsystem ${{ matrix.subsystem }}
Expand Down
11 changes: 6 additions & 5 deletions tools/dep_updaters/update-nghttp3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,16 @@ cleanup () {
trap cleanup INT TERM EXIT

NGHTTP3_REF="v$NEW_VERSION"
NGHTTP3_ZIP="nghttp3-$NEW_VERSION"
NGHTTP3_ZIP="nghttp3-${NEW_VERSION}"

cd "$WORKSPACE"

echo "Fetching nghttp3 source archive..."
curl -sL -o "$NGHTTP3_ZIP.zip" "https://github.com/ngtcp2/nghttp3/archive/refs/tags/$NGHTTP3_REF.zip"
log_and_verify_sha256sum "nghttp3" "$NGHTTP3_ZIP.zip"
unzip "$NGHTTP3_ZIP.zip"
rm "$NGHTTP3_ZIP.zip"
curl -sL -o "$NGHTTP3_ZIP.tar.xz" "https://github.com/ngtcp2/nghttp3/releases/download/v${NEW_VERSION}/${NGHTTP3_ZIP}.tar.xz"
SHA256="$(curl -sL "https://github.com/ngtcp2/nghttp3/releases/download/v${NEW_VERSION}/checksums.txt" | grep 'tar.xz$')"
log_and_verify_sha256sum "nghttp3" "$NGHTTP3_ZIP.tar.xz" "$SHA256"
tar -xJf "$NGHTTP3_ZIP.tar.xz"
rm "$NGHTTP3_ZIP.tar.xz"
mv "$NGHTTP3_ZIP" nghttp3

cd nghttp3
Expand Down

0 comments on commit 1e35746

Please sign in to comment.