mirror of
https://github.com/nodejs/node.git
synced 2024-11-25 08:19:38 +01:00
8e27f21f9f
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.0.0 to 4.0.1. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](8f152de45c...b39b52d121
) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> PR-URL: https://github.com/nodejs/node/pull/51334 Refs:b39b52d121
Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
56 lines
1.9 KiB
YAML
56 lines
1.9 KiB
YAML
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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Cache node modules and update-v8
|
|
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.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@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
- name: Install @node-core/utils
|
|
run: npm install -g @node-core/utils
|
|
- 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: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5
|
|
# Creates a PR or update the Action's existing PR, or
|
|
# no-op if the base branch is already up-to-date.
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
|
|
with:
|
|
author: Node.js GitHub Bot <github-bot@iojs.org>
|
|
body: This is an automated patch update of V8 to ${{ env.NEW_VERSION }}.
|
|
branch: actions/update-v8-patch # Custom branch *just* for this Action.
|
|
labels: v8 engine
|
|
title: 'deps: patch V8 to ${{ env.NEW_VERSION }}'
|
|
update-pull-request-title-and-body: true
|