Skip to content

Nightly Cargo.lock update #260

Nightly Cargo.lock update

Nightly Cargo.lock update #260

Workflow file for this run

---
name: Nightly Cargo.lock update
on:
schedule:
- cron: 0 12 * * *
workflow_dispatch: {}
permissions:
actions: read
contents: write
pull-requests: write
id-token: write
jobs:
update-lock:
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
ref: main
- name: Prepare
id: init
uses: ./.github/actions/prepare
# Get the output of the prepare composite action
- name: Get cache-hit output
run: 'echo "Cache hit >>>>>: ${{ steps.init.outputs.cache-hit }}"'
- name: Cargo Update
id: lock-file-commit
run: |-
cargo update
git add Cargo.lock
if ! git diff --cached --quiet Cargo.lock; then
echo "changes=true" >> $GITHUB_OUTPUT
else
echo "Cargo.lock has no changes, skipping commit and push."
exit 0
fi
- name: Create or update pull request
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: 'chore: Updating lock file'
sign-commits: true
branch: update-cargo-lock
delete-branch: true
commit-message: 'chore: Updating lock file'
body: |-
This PR is generated automatically by GitHub Actions.
It contains all dependency updates since the last run.
base: main
labels: dependencies, automation