Skip to content

Update supply chain #17

Update supply chain

Update supply chain #17

name: Update supply chain
on:
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#push-using-ssh-deploy-keys
ssh-key: ${{ secrets.PR_SSH_KEY }}
# smoelius: The next use of `actions/cache` should match what is in ci.yml.
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.dylint_drivers/
~/.rustup/toolchains/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install cargo-supply-chain
run: cargo install cargo-supply-chain || true
- name: Update supply_chain.json
run: cargo test -p cargo-dylint --test ci supply_chain
env:
BLESS: 1
- name: Create pull request
uses: peter-evans/create-pull-request@v5
with:
title: Update supply_chain.json
commit-message: Update supply_chain.json
token: ${{ secrets.PR_GITHUB_TOKEN }}
branch-suffix: random