Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meysam81/cargo-upgrade-action
https://github.com/meysam81/cargo-upgrade-action
cargo cargo-plugin cargo-subcommand continuous-delivery continuous-integration dependencies dependency dependency-automation dependency-management github-actions library-automation library-management rust
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/meysam81/cargo-upgrade-action
- Owner: meysam81
- License: apache-2.0
- Created: 2024-06-22T10:04:48.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-22T10:46:36.000Z (7 months ago)
- Last Synced: 2024-10-14T06:28:28.671Z (4 months ago)
- Topics: cargo, cargo-plugin, cargo-subcommand, continuous-delivery, continuous-integration, dependencies, dependency, dependency-automation, dependency-management, github-actions, library-automation, library-management, rust
- Homepage: https://github.com/marketplace/actions/cargo-upgrade
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cargo Upgrades Action
This GitHub Action allows you to have continuous
integration for the newer version of your `Cargo.toml`
dependencies.## Usage
```yaml
name: cion:
schedule:
- cron: "30 1 * * *"jobs:
cargo-upgrade:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run cargo-upgrade
uses: meysam81/cargo-upgrade-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
```## Inputs
| Name | Description | Default |
| ----------------------- | ------------------------------------------------------------------------------------------------------ | ------- |
| `cargo-upgrade-version` | The version of `cargo-upgrade` to use. | `~0.12` |
| `extra-flags` | Extra flags to pass to `cargo-upgrade`. For example `-i allow` | |
| `token` | GitHub token. Required for creating the pull request. the `pull-requests: write` permission is needed. | |