From 1eb2bfda4df5f52d28083d3d5cf52e39d44adfae Mon Sep 17 00:00:00 2001 From: Aidan Date: Wed, 19 Feb 2025 22:48:42 -0500 Subject: [PATCH] ci: add bump script --- .gitea/workflows/bump.yml | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .gitea/workflows/bump.yml diff --git a/.gitea/workflows/bump.yml b/.gitea/workflows/bump.yml new file mode 100644 index 0000000..75de03c --- /dev/null +++ b/.gitea/workflows/bump.yml @@ -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