forked from rogchap/v8go
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
100 additions
and
80 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,46 @@ | ||
name: V8 Upgrade | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * *' # Run every day | ||
on: [workflow_dispatch] | ||
|
||
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}} | ||
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: | ||
token: ${{ secrets.TOKEN }} | ||
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}} |