-
Notifications
You must be signed in to change notification settings - Fork 27k
41 lines (36 loc) · 1.32 KB
/
update_react.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
name: Update React
on:
schedule:
# At 40 minutes past 16:00 on Mon, Tue, Wed, Thu, and Fri
# i.e. 30min past React nightlies: https://github.com/facebook/react/blob/941e1b4a0a81ca3d5f2ac6ef35682e2f8e96dae1/.github/workflows/runtime_prereleases_nightly.yml#L6
# TODO: automatically trigger on React release
- cron: 40 16 * * 1,2,3,4,5
# Allow manual runs
workflow_dispatch:
inputs:
version:
description: 'The version to update to. Uses latest Canary if omitted.'
required: false
env:
NODE_LTS_VERSION: 20
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
jobs:
create-pull-request:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Commits made with the default `GITHUB_TOKEN` won't trigger workflows.
# See: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
- name: Set Git author
run: |
git config user.name "vercel-release-bot"
git config user.email "infra+release@vercel.com"
- name: Get email
run: |
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/user/emails