Update Deps #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Update Deps | |
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@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- name: Cargo update | |
run: cargo update | |
- name: Commit changes | |
id: commit | |
continue-on-error: true | |
run: | | |
git config user.name 'Phylum Bot' | |
git config user.email 'phylum-bot@users.noreply.github.com' | |
git commit -a -m "build: Bump `Cargo.lock` dependencies" | |
git push --force origin HEAD:auto-cargo-update | |
- name: Create Pull Request | |
if: ${{ steps.commit.outcome == 'success' }} | |
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 | |
with: | |
github-token: ${{ secrets.GH_RELEASE_PAT }} | |
script: | | |
github.rest.pulls.create({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
head: "auto-cargo-update", | |
base: context.ref, | |
title: "build: Bump `Cargo.lock` dependencies", | |
body: "Bump dependencies in `Cargo.lock` for all SemVer-compatible updates.", | |
}); |