Skip to content

Upgrade all dependencies #1023

Upgrade all dependencies

Upgrade all dependencies #1023

name: Upgrade all dependencies
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
env:
node-version: 14
jobs:
upgrade-npm-packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: ${{ env.node-version }}
- run: TARGET=typescript make clean upgrade-dependencies
- uses: actions/upload-artifact@v2
with:
name: npm-package-changes
path: yarn.lock
upgrade-pods:
runs-on: m1
needs:
- upgrade-npm-packages
steps:
- uses: actions/setup-node@v2-beta
with:
node-version: ${{ env.node-version }}
- uses: actions/download-artifact@v2
with:
name: npm-package-changes
- run: TARGET=ios make clean upgrade-dependencies
- uses: actions/upload-artifact@v2
with:
name: pod-changes
path: ios/Podfile.lock
create-pull-request:
needs:
- upgrade-pods
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: npm-package-changes
- uses: actions/download-artifact@v2
with:
name: pod-changes
path: ios
- uses: peter-evans/create-pull-request@v3
with:
add-paths: |
ios/Podfile.lock
yarn.lock
assignees: edeckers
base: develop
body: "This PR contains automated dependency upgrades for Cocoapods and TypeScript"
branch: bot/maintenance/upgrade-dependencies
commit-message: "fix(deps): upgrade dependencies"
delete-branch: true
draft: false
labels: |
dependencies
title: "[Automated] Upgrade dependencies"