V8 patch update #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: V8 patch update | |
on: | |
schedule: | |
# Run once a week at 00:05 AM UTC on Sunday. | |
- cron: 5 0 * * 0 | |
workflow_dispatch: | |
env: | |
NODE_VERSION: lts/* | |
permissions: | |
contents: read | |
jobs: | |
v8-update: | |
if: github.repository == 'nodejs/node' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
with: | |
persist-credentials: false | |
- name: Cache node modules and update-v8 | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
id: cache-v8-npm | |
env: | |
cache-name: cache-v8-npm | |
with: | |
path: | | |
~/.update-v8 | |
~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }} | |
- name: Install Node.js | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install @node-core/utils | |
run: npm install -g @node-core/utils | |
- name: Setup Git config | |
run: | | |
git config --global user.name "Node.js GitHub Bot" | |
git config --global user.email "[email protected]" | |
- name: Check and download new V8 version | |
run: | | |
./tools/dep_updaters/update-v8-patch.sh > temp-output | |
cat temp-output | |
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true | |
rm temp-output | |
- uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5 | |
# Creates a PR or update the Action's existing PR, or | |
# no-op if the base branch is already up-to-date. | |
with: | |
token: ${{ secrets.GH_USER_TOKEN }} | |
branch: actions/update-v8-patch # Custom branch *just* for this Action. | |
delete-branch: true | |
title: 'deps: patch V8 to ${{ env.NEW_VERSION }}' | |
body: This is an automated patch update of V8 to ${{ env.NEW_VERSION }}. | |
labels: v8 engine |