don't run GHA workflows on tag pushes #7487
Workflow file for this run
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
# This workflow file serves as an example for cargo-hakari CI integration. | |
on: | |
push: | |
branches: | |
- main | |
- 'rel/**' | |
pull_request: {} | |
name: cargo hakari | |
jobs: | |
workspace-hack-check: | |
name: Check workspace-hack | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -D warnings | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} # see omicron#4461 | |
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1 | |
with: | |
toolchain: stable | |
- name: Install cargo-hakari | |
uses: taiki-e/install-action@11053896c3ed8d313b47efa789def6474abd1e6b # v2 | |
with: | |
tool: cargo-hakari | |
- name: Check workspace-hack Cargo.toml is up-to-date | |
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1 | |
with: | |
command: hakari | |
args: generate --diff | |
- name: Check all crates depend on workspace-hack | |
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1 | |
with: | |
command: hakari | |
args: manage-deps --dry-run |