2020-11-27 14:01:10 +00:00
|
|
|
name: Record Images and Videos
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-08-17 15:24:58 +00:00
|
|
|
os: [macos-12.0, macos-latest]
|
2020-11-27 14:01:10 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: Install Node.js
|
2022-08-17 10:03:36 +00:00
|
|
|
uses: actions/setup-node@v3
|
2020-11-27 14:01:10 +00:00
|
|
|
with:
|
2022-08-17 15:19:24 +00:00
|
|
|
node-version: 15.14.0
|
2020-11-27 14:01:10 +00:00
|
|
|
|
|
|
|
- name: Get yarn cache
|
|
|
|
working-directory: record
|
|
|
|
id: yarn-cache
|
|
|
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
2022-08-17 09:56:10 +00:00
|
|
|
- uses: actions/cache@v3
|
2020-11-27 14:01:10 +00:00
|
|
|
with:
|
|
|
|
path: ${{ steps.yarn-cache.outputs.dir }}
|
|
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-yarn-
|
|
|
|
|
|
|
|
- run: yarn install --frozen-lockfile
|
|
|
|
working-directory: record
|
|
|
|
|
|
|
|
- run: yarn record:next
|
|
|
|
working-directory: record
|
|
|
|
|
|
|
|
- name: Create Pull Request
|
2023-04-17 14:27:45 +00:00
|
|
|
uses: peter-evans/create-pull-request@v5
|
2022-08-17 15:24:58 +00:00
|
|
|
if: matrix.os == 'macos-12.0'
|
2020-11-27 14:01:10 +00:00
|
|
|
with:
|
|
|
|
commit-message: ':camera: Update images and videos ${{ matrix.os }}'
|
|
|
|
title: ':camera: Update images and videos ${{ matrix.os }}'
|
|
|
|
branch: update-images-and-videos-${{ matrix.os }}
|
|
|
|
delete-branch: true
|