https://github.com/kwonoj/gha-cargo-upgrade
Github action to automatically create PRs to upgrade cargo dependencies
https://github.com/kwonoj/gha-cargo-upgrade
Last synced: 2 months ago
JSON representation
Github action to automatically create PRs to upgrade cargo dependencies
- Host: GitHub
- URL: https://github.com/kwonoj/gha-cargo-upgrade
- Owner: kwonoj
- Created: 2022-12-01T21:50:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-05T06:10:20.000Z (over 3 years ago)
- Last Synced: 2024-10-19T18:30:18.327Z (almost 2 years ago)
- Language: TypeScript
- Size: 274 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Example
```yml
name: Bump up swc_core
on:
schedule:
# Twice a day, one for 12:00 and one for 6:00am
- cron: '0 0 * * *'
- cron: '0 6 * * *'
jobs:
upgrade-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- uses: Swatinem/rust-cache@v2
with:
shared-key: "gha-cargo-upgrade"
cache-on-failure: true
- name: Run cargo upgrade
uses: kwonoj/gha-cargo-upgrade@read-config
with:
# Required, gh token for creating pull request
# This should be a personal token with repo access if you'd like to run CI actions.
# using default GITHUB_TOKEN will create PR with github-actions bot user, and it'll skip any CI actions.
# https://github.com/peter-evans/create-pull-request/issues/48
token: ${{ secrets.REPO_SCOPED_TOKEN }}
# Required, packages to upgrade. "*" indicates upgrade all
packages: "swc_core"
# Optional, Custom branch name for the pull request
branch_name: "some_branch_name"
# Optional, user to @-mention when pull request is created
notified_users: "kwonoj,everylogbot"
# Optional, run cargo upgrade with --incompatible
incompatible: false
```