From f57b34e25b5e877fc942beb251971e2752de0d91 Mon Sep 17 00:00:00 2001 From: z0x Date: Wed, 8 Jan 2025 22:08:08 -0500 Subject: [PATCH] feat(workflow): actions dependency updates --- .gitea/workflows/update-dependencies.yaml | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/update-dependencies.yaml diff --git a/.gitea/workflows/update-dependencies.yaml b/.gitea/workflows/update-dependencies.yaml new file mode 100644 index 0000000..fe0b5fe --- /dev/null +++ b/.gitea/workflows/update-dependencies.yaml @@ -0,0 +1,37 @@ +name: update dependencies +on: + schedule: + - cron: '@daily' + workflow_dispatch: + push: + branches: + - main +jobs: + update-deps: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup bun.sh + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Update dependencies + run: | + bun update + bun install + + - name: Commit updates + run: | + git config user.name "gitea-actions[bot]" + git config user.email "gitea-actions[bot]@git.z0x.ca" + git add . + if git diff --staged --quiet; then + echo "No updates avalable" + else + git commit -m "chore(deps): bump dependencies" + git push + fi