add auto-update
This commit is contained in:
parent
3a20508aae
commit
29fe49b3af
34
.gitea/workflows/update.yml
Normal file
34
.gitea/workflows/update.yml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: Update Cargo Dependencies
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 2 * * 5' # Run weekly on Friday at 2am
|
||||||
|
workflow_dispatch: # Allow manual triggering
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-dependencies:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: git.hofer.link/philipp/ci-images:rust-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Update dependencies
|
||||||
|
run: |
|
||||||
|
cargo upgrade
|
||||||
|
cargo update
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: https://git.hofer.link/philipp/create-pull-request@18ef1fdad70eec569ab10292c1fa79c1b5296370
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITEATOKEN }}
|
||||||
|
commit-message: Update Cargo dependencies
|
||||||
|
title: Update Cargo dependencies
|
||||||
|
body: |
|
||||||
|
This PR updates Cargo dependencies to their latest versions.
|
||||||
|
|
||||||
|
@philipp
|
||||||
|
|
||||||
|
- Run `cargo upgrade` to update version requirements in Cargo.toml
|
||||||
|
- Run `cargo update` to update Cargo.lock
|
||||||
|
branch: update-cargo-dependencies
|
||||||
|
delete-branch: true
|
Loading…
x
Reference in New Issue
Block a user