forked from elabit/robotmk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae42e33
commit 063926c
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: "Update Cargo.lock" | ||
on: | ||
schedule: | ||
- cron: '0 3 * * 1' # On Monday, 03:00 UTC | ||
workflow_dispatch: {} | ||
jobs: | ||
cargo_update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/[email protected] | ||
- run: echo "BRANCH_NAME=automation/cargo_update$(date +%s)" >> "$GITHUB_OUTPUT" | ||
id: branch_name | ||
- run: git checkout -b ${{ steps.branch_name.outputs.BRANCH_NAME }} | ||
- run: cargo update | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "Solomon Jacobs" | ||
- run: git add . | ||
- run: git commit -m "Update Cargo.lock" -m "Created automatically." -o Cargo.lock | ||
- run: git push origin HEAD | ||
- name: "Create pull request" | ||
run: gh pr create -B main -H ${{ steps.branch_name.outputs.BRANCH_NAME }} -f | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |