1# Generated from xtask::workflows::run_license_checks
2# Rebuild with `cargo xtask workflows`.
3name: run_license_checks
4env:
5 CARGO_TERM_COLOR: always
6 RUST_BACKTRACE: '1'
7 CARGO_INCREMENTAL: '0'
8on:
9 pull_request:
10 branches:
11 - '**'
12 paths:
13 - Cargo.lock
14 - '**/Cargo.lock'
15 - script/*licenses
16 - '**/LICENSE*'
17 - .github/workflows/run_license_checks.yml
18 push:
19 branches:
20 - main
21 - v[0-9]+.[0-9]+.x
22 paths:
23 - Cargo.lock
24 - '**/Cargo.lock'
25 - script/*licenses
26 - '**/LICENSE*'
27 - .github/workflows/run_license_checks.yml
28jobs:
29 check_licenses:
30 runs-on: namespace-profile-2x4-ubuntu-2404
31 steps:
32 - name: steps::checkout_repo
33 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
34 with:
35 clean: false
36 - name: ./script/check-licenses
37 run: ./script/check-licenses
38 shell: bash -euxo pipefail {0}
39 build_licenses:
40 runs-on: namespace-profile-4x8-ubuntu-2204
41 steps:
42 - name: steps::checkout_repo
43 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
44 with:
45 clean: false
46 - name: ./script/generate-licenses
47 run: ./script/generate-licenses
48 shell: bash -euxo pipefail {0}
49concurrency:
50 group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
51 cancel-in-progress: true