fix: fixed github action
This commit is contained in:
44
.github/workflows/update.yaml
vendored
44
.github/workflows/update.yaml
vendored
@@ -1,32 +1,30 @@
|
|||||||
name: Update
|
name: Update
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DO_NOT_TRACK: 1
|
DO_NOT_TRACK: 1
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '30 10 * * *'
|
- cron: '30 10 * * *'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
permissions:
|
steps:
|
||||||
contents: write
|
- uses: actions/checkout@v3
|
||||||
|
- name: Use Bun
|
||||||
steps:
|
uses: oven-sh/setup-bun@v2
|
||||||
- uses: actions/checkout@v3
|
- run: bun install
|
||||||
- name: Use PNPM
|
- name: Update
|
||||||
uses: pnpm/action-setup@v4
|
run: bun run update
|
||||||
with:
|
- name: Commit changes if any
|
||||||
run_install: true
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
- name: Update
|
with:
|
||||||
run: pnpm run update
|
commit_message: 'chore: auto update'
|
||||||
- name: Commit changes if any
|
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
|
||||||
with:
|
|
||||||
commit_message: "chore: auto update"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user