2023-04-26 10:20:23 +02:00
|
|
|
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:
|
2024-07-03 20:21:27 +02:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2023-04-26 10:20:23 +02:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2023-04-26 15:43:16 +02:00
|
|
|
- name: Cache node modules and update-v8
|
2024-04-03 20:52:14 +02:00
|
|
|
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
2023-04-26 15:43:16 +02:00
|
|
|
id: cache-v8-npm
|
|
|
|
env:
|
|
|
|
cache-name: cache-v8-npm
|
2023-04-26 10:20:23 +02:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.update-v8
|
|
|
|
~/.npm
|
2023-04-26 15:43:16 +02:00
|
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}
|
2023-04-26 10:20:23 +02:00
|
|
|
- name: Install Node.js
|
2024-08-06 07:44:12 +02:00
|
|
|
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
|
2023-04-26 10:20:23 +02:00
|
|
|
with:
|
|
|
|
node-version: ${{ env.NODE_VERSION }}
|
2023-09-25 13:48:03 +02:00
|
|
|
- name: Install @node-core/utils
|
|
|
|
run: npm install -g @node-core/utils
|
2024-05-14 11:36:56 +02:00
|
|
|
- name: Setup Git config
|
|
|
|
run: |
|
|
|
|
git config --global user.name "Node.js GitHub Bot"
|
|
|
|
git config --global user.email "github-bot@iojs.org"
|
2023-04-26 10:20:23 +02:00
|
|
|
- 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
|
2024-09-08 19:42:20 +02:00
|
|
|
- uses: peter-evans/create-pull-request@8867c4aba1b742c39f8d0ba35429c2dfa4b6cb20 # v7.0.1
|
2023-04-26 10:20:23 +02:00
|
|
|
# Creates a PR or update the Action's existing PR, or
|
|
|
|
# no-op if the base branch is already up-to-date.
|
|
|
|
with:
|
2024-05-14 11:36:56 +02:00
|
|
|
token: ${{ secrets.GH_USER_TOKEN }}
|
2023-04-26 10:20:23 +02:00
|
|
|
branch: actions/update-v8-patch # Custom branch *just* for this Action.
|
2024-05-14 11:36:56 +02:00
|
|
|
delete-branch: true
|
2023-04-26 10:20:23 +02:00
|
|
|
title: 'deps: patch V8 to ${{ env.NEW_VERSION }}'
|
2024-05-14 11:36:56 +02:00
|
|
|
body: This is an automated patch update of V8 to ${{ env.NEW_VERSION }}.
|
2024-08-23 00:16:16 +02:00
|
|
|
labels: dependencies, v8 engine
|