-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70061b4
commit cd9887c
Showing
2 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Auto update | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: 0 0 * * * | ||
|
||
jobs: | ||
taze: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
outputs: | ||
updated: ${{ steps.set-output.outputs.updated }} | ||
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 | ||
- name: Set output | ||
id: set-output | ||
if: steps.taze.outcome == 'failure' | ||
run: | | ||
echo "updated=true" >> $GITHUB_OUTPUT | ||
lint: | ||
needs: taze | ||
uses: ./.github/workflows/ci.yml | ||
if: needs.taze.outputs.updated == 'true' |
cd9887c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
endless-chat – ./
e2.frechat.xyz
e1.frechat.xyz
c1.muspimerol.site
e5.free-chat.asia
e3.free-chat.asia
e4.free-chat.asia
e4.frechat.xyz
e2.free-chat.asia
e3.frechat.xyz
e1.free-chat.asia
endless-chat.vercel.app
c2.muspimerol.site
e1.muspimerol.site
endless.free-chat.asia
endless-chat-git-promplate-demo-promplate.vercel.app
endless-chat-promplate.vercel.app