Update Preview Dependencies (feat/v2-ci) #1187
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
name: "Update Preview Dependencies (feat/v2-ci)" | |
on: | |
schedule: | |
- cron: "0 */3 * * *" # every three hours | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
ref: 'feat/v2-ci' | |
- name: Setup Node.js 18.x | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18.x | |
- name: Remove yarn.lock | |
run: rm yarn.lock | |
- name: Install Dependencies | |
run: yarn | |
- name: Open PR with changes | |
uses: peter-evans/create-pull-request@v5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
title: "chore(feat/v2-ci): updated preview dependencies" | |
body: "This PR updates preview dependencies to the latest versions." | |
branch: "chore/update-preview" | |
branch-suffix: "timestamp" | |
base: "feat/v2-ci" | |
add-paths: yarn.lock |