Skip to content

Commit

Permalink
add action for feat/v2-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser committed May 22, 2024
1 parent cc6ced4 commit c9c4ad4
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/update-preview-deps-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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"
base: "feat/v2-ci"
add-paths: yarn.lock
4 changes: 2 additions & 2 deletions .github/workflows/update-preview-deps.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Update Preview Dependencies"
name: "Update Preview Dependencies (feat/v2)"
on:
schedule:
- cron: "0 */3 * * *" # every three hours
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: "chore: updated preview dependencies"
title: "chore(feat/v2): updated preview dependencies"
body: "This PR updates preview dependencies to the latest versions."
branch: "chore/update-preview"
base: "feat/v2"
Expand Down

0 comments on commit c9c4ad4

Please sign in to comment.