ci: add bump script
All checks were successful
Bump Dependencies / update-dependencies (push) Successful in 1m5s
Build and Push Nightly CI Image / build_and_push (push) Successful in 1m9s
Build and Push Docker Image / build_and_push (push) Successful in 4s
All checks were successful
Bump Dependencies / update-dependencies (push) Successful in 1m5s
Build and Push Nightly CI Image / build_and_push (push) Successful in 1m9s
Build and Push Docker Image / build_and_push (push) Successful in 4s
This commit is contained in:
parent
11d2e02f89
commit
1eb2bfda4d
43
.gitea/workflows/bump.yml
Normal file
43
.gitea/workflows/bump.yml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
name: Bump Dependencies
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
- cron: "0 12 * * *"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-dependencies:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup Bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: bun install
|
||||||
|
|
||||||
|
- name: Update Dependencies
|
||||||
|
run: bun update
|
||||||
|
|
||||||
|
- name: Build App
|
||||||
|
run: bun run build
|
||||||
|
|
||||||
|
- name: Commit and Push Changes
|
||||||
|
env:
|
||||||
|
USERNAME_GITEA: ${{ secrets.USERNAME_GITEA }}
|
||||||
|
TOKEN_GITEA: ${{ secrets.TOKEN_GITEA }}
|
||||||
|
run: |
|
||||||
|
git config --global user.name "LibreCloud Actions Bot"
|
||||||
|
git config --global user.email "git@pontusmail.org"
|
||||||
|
git remote set-url origin https://${USERNAME_GITEA}:${TOKEN_GITEA}@git.pontusmail.org/librecloud/web.git
|
||||||
|
git add .
|
||||||
|
git commit -m "chore: bump dependencies" || exit 0
|
||||||
|
git push origin main
|
Loading…
x
Reference in New Issue
Block a user