Skip to content

Commit

Permalink
feat: add auto-update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Jun 30, 2024
1 parent 70061b4 commit 90c06a6
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Auto update

on:
workflow_dispatch:
schedule:
- cron: 0 0 * * *

jobs:
taze:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest

- name: Set node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: pnpm

- name: Check updates
id: taze
run: pnpx taze -a --failOnOutdated
continue-on-error: true
- name: Updates dependencies
if: steps.taze.outcome == 'failure'
run: |
pnpx taze -w
pnpm update
- name: Commit changes
if: steps.taze.outcome == 'failure'
run: |
git config --local user.name 'github-actions[bot]'
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
git add package.json pnpm-lock.yaml
git commit -m 'chore(deps): update dependencies'
git push

1 comment on commit 90c06a6

@vercel
Copy link

@vercel vercel bot commented on 90c06a6 Jun 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.