This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
forked from rogchap/v8go
-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (40 loc) · 1.71 KB
/
v8upgrade.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: V8 Upgrade
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Run every day
jobs:
upgrade:
name: Upgrade V8
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Update depot_tools fetch config
run: cd deps/depot_tools && git config --unset-all remote.origin.fetch; git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
shell: bash
- name: Add depot_tools to PATH
run: echo "$PWD/deps/depot_tools" >> $GITHUB_PATH
shell: bash
- name: Run upgrade script
run: cd deps && python upgrade_v8.py
- name: Create PR metadata
id: pr_metadata
run: |
echo ::set-output name=pr_branch::"v8_$(cat deps/v8_version)_upgrade"
echo ::set-output name=pr_commit_message::"Upgrade V8 binaries for $(cat deps/v8_version) version"
echo ::set-output name=pr_body::"Auto-generated pull request to upgrade V8 binary for $(cat deps/v8_version) version"
- name: Create PR
uses: peter-evans/create-pull-request@v3
with:
commit-message: ${{steps.pr_metadata.outputs.pr_commit_message}}
branch: ${{steps.pr_metadata.outputs.pr_branch}}
delete-branch: true
title: ${{steps.pr_metadata.outputs.pr_commit_message}}
body: ${{steps.pr_metadata.outputs.pr_body}}