mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-07-28 14:26:59 -07:00
next iteration of trying to rework dependabot
This commit is contained in:
+24
-8
@@ -3,27 +3,43 @@ updates:
|
||||
# upgrade cargo patch versions once per week
|
||||
# see `workflows/upgrade.yml`
|
||||
|
||||
# major and minor cargo upgrades only once per week
|
||||
# disabled for now for testing...
|
||||
# # upgrade major and minor cargo dependencies soon
|
||||
# - package-ecosystem: "cargo"
|
||||
# directory: "/"
|
||||
# schedule:
|
||||
# interval: "daily"
|
||||
# allow:
|
||||
# - update-types:
|
||||
# - "major"
|
||||
# - "minor"
|
||||
# # open-pull-requests-limit: 0 # temporarily disable dependabot
|
||||
|
||||
- package-ecosystem: "cargo"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
day: "monday"
|
||||
time: "06:00"
|
||||
time: "04:12"
|
||||
timezone: "Europe/Berlin"
|
||||
# allow:
|
||||
# - update-types:
|
||||
# - "patch"
|
||||
groups:
|
||||
weekly-patch-updates:
|
||||
# group patches for better visibility
|
||||
weekly-cargo-patches:
|
||||
applies-to: "version-updates"
|
||||
patterns:
|
||||
- "*"
|
||||
update-types:
|
||||
- "major"
|
||||
- "minor"
|
||||
# open-pull-requests-limit: 0 # temporarily disable dependabot
|
||||
- "patch"
|
||||
|
||||
# upgrade all GitHub Actions soon
|
||||
# upgrade all GitHub Actions once per week
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
interval: "weekly"
|
||||
day: "monday"
|
||||
time: "04:23"
|
||||
timezone: "Europe/Berlin"
|
||||
# open-pull-requests-limit: 0 # temporarily disable dependabot
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
name: Cargo Update
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
schedule:
|
||||
- cron: "23 4 * * 1"
|
||||
|
||||
concurrency:
|
||||
group: cargo-update
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
cargo-update:
|
||||
name: Update Cargo dependencies
|
||||
runs-on: ubicloud-standard-2
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: main
|
||||
fetch-depth: 0 # fetch entire git history
|
||||
|
||||
- name: cargo update
|
||||
run: cargo update --verbose
|
||||
- name: Validate updated lockfile
|
||||
run: cargo metadata --locked --no-deps > /dev/null
|
||||
- name: cargo vet regenerate exemptions
|
||||
run: cargo vet regenerate exemptions
|
||||
|
||||
- name: Create pull request
|
||||
uses: peter-evans/create-pull-request@v8
|
||||
with:
|
||||
token: ${{ secrets.CARGO_UPDATE_TOKEN || github.token }}
|
||||
|
||||
base: main
|
||||
branch: automation/cargo-update
|
||||
delete-branch: true
|
||||
|
||||
add-paths: |
|
||||
Cargo.lock
|
||||
supply-chain/
|
||||
|
||||
commit-message: "chore(deps): cargo update"
|
||||
title: "chore(deps): cargo update"
|
||||
|
||||
body: |
|
||||
This pull request was generated automatically by GitHub Workflow `Cargo Update`.
|
||||
|
||||
It executes:
|
||||
|
||||
```bash
|
||||
cargo update
|
||||
cargo vet regenerate exemptions
|
||||
```
|
||||
|
||||
labels: |
|
||||
dependencies
|
||||
rust
|
||||
maintenance
|
||||
|
||||
draft: false
|
||||
Reference in New Issue
Block a user