-
Notifications
You must be signed in to change notification settings - Fork 901
74 lines (63 loc) · 2.27 KB
/
upgrade.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Expo Dependencies
on:
workflow_dispatch:
inputs:
mode:
type: choice
description: Are we upgrading to `expo@latest`, or just fixing dependencies?
required: true
default: fix-dependencies
options:
- upgrade-expo
- fix-dependencies
env:
EXPO_PACKAGE_MANAGER: bun
jobs:
run:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: 🏗️ Setup repo
uses: actions/checkout@v4
- name: 🏗️ Setup Node
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: 🏗️ Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: 📦 Upgrade Expo SDK
if: ${{ inputs.mode == 'upgrade-expo' }}
run: bash ./upgrade-dependencies.sh --upgrade-expo
- name: 💬 Create new upgrade PR
if: ${{ inputs.mode == 'upgrade-expo' }}
uses: peter-evans/create-pull-request@v5
with:
branch: automated-upgrade
reviewers: |
byCedric
keith-kurak
commit-message: 'chore: upgrade expo to `latest`'
title: Upgraded Expo SDK to `expo@latest`
body: |
This PR was automatically created by the [upgrade workflow](./.github/workflows/upgrade.yml).
> ⚠️ Review the [job logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) before merging
- name: 👷 Fix Expo dependencies
if: ${{ inputs.mode == 'fix-dependencies' }}
run: bash ./upgrade-dependencies.sh --fix-dependencies
- name: 💬 Create new fix PR
if: ${{ inputs.mode == 'fix-dependencies' }}
uses: peter-evans/create-pull-request@v5
with:
branch: automated-fix
reviewers: |
byCedric
keith-kurak
commit-message: 'chore: fix expo dependencies'
title: Fixed all Expo SDK dependencies
body: |
This PR was automatically created by the [upgrade workflow](./.github/workflows/upgrade.yml).
> ⚠️ Review the [job logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) before merging