-
Notifications
You must be signed in to change notification settings - Fork 931
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add workflow to keep dependencies up-to-date (#450)
* chore: add workflow to keep dependencies up-to-date * fix: tweak the upgrade script for usage in workflows * chore: tweak commit message * chore: add `.sdk-fix-logs` to gitignore
- Loading branch information
Showing
3 changed files
with
89 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
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 | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
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: 📦 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). | ||
Please review the changes and merge it when you're ready. | ||
- 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). | ||
Please review the changes and merge it when you're ready. | ||
- name: 📋 Uploading logs | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: | | ||
.sdk-upgrade-logs | ||
.sdk-fix-logs |
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 |
---|---|---|
|
@@ -34,4 +34,5 @@ with-nextjs/out | |
report.html | ||
|
||
# Maintenance logs | ||
.sdk-upgrade-logs | ||
.sdk-upgrade-logs | ||
.sdk-fix-logs |
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