Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically run cargo update in a workflow #330

Merged
merged 4 commits into from
May 2, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ updates:
directory: "/"
schedule:
interval: weekly
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/cargo-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Test
kylewillmon marked this conversation as resolved.
Show resolved Hide resolved

on:
workflow_dispatch:
# Run every Monday
schedule:
- cron: '30 5 * * 1'

jobs:
cargo-update:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v3

- name: Cargo update
run: cargo update

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
maxrake marked this conversation as resolved.
Show resolved Hide resolved
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: Bump dependencies"
kylewillmon marked this conversation as resolved.
Show resolved Hide resolved
body: |
Bump dependencies in Cargo.lock for all SemVer-compatible updates.
branch: auto-cargo-update