Commit acc3f95
Changed files (1)
.github
workflows
.github/workflows/autobump.yml
@@ -0,0 +1,31 @@
+---
+name: Audo bump dependencies
+
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: 20 20 * * *
+
+jobs:
+ job:
+ if: ${{ github.ref == 'refs/heads/main' }}
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@main
+ - uses: astral-sh/setup-uv@main
+ - name: Bump
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |-
+ set -e
+ git config --global user.email 49699333+dependabot[bot]@users.noreply.github.com
+ git config --global user.name "dependabot[bot]"
+ git config pull.rebase false
+ uv lock -U
+ git add uv.lock
+ git commit -m 'chore(deps): bump dependencies' || export NO_UPDATES=true
+ if [ "$NO_UPDATES" != "true" ] ; then
+ echo "push to main"
+ git push origin main
+ curl -X POST -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/actions/workflows/baseimg.yml/dispatches -d '{"ref": "main"}'
+ fi