Skip to content

Commit

Permalink
Partially revert "ci: remove license check jobs from the workflow file."
Browse files Browse the repository at this point in the history
This partially reverts commit 39db295,
i.e. revertes the 'license' directive. Without this change, the "Check
dependencies for licenses" check remains in state "Expected — Waiting
for status to be reported".

Signed-off-by: Costin Lupu <[email protected]>
  • Loading branch information
clupuishere committed Nov 28, 2023
1 parent 8d2b7a5 commit a1fd372
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,22 @@ jobs:
- run: cargo install --locked --version "~0.17" cargo-audit
- run: cargo audit --ignore RUSTSEC-2020-0159 --ignore RUSTSEC-2020-0071

license:
name: Check dependencies for licenses
runs-on: ubuntu-latest
outputs:
license_changed: ${{ steps.license_diff.outputs.license_changed }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo install --locked --version "~0.5" cargo-about
- run: cargo about generate --workspace --output-file "${{ runner.temp }}/licenses.html" about.hbs
- id: license_diff
run: |
if diff -q THIRD_PARTY_LICENSES_RUST_CRATES.html ${{ runner.temp }}/licenses.html ; then
echo "license_changed=NO" >> $GITHUB_OUTPUT
else
echo "license_changed=YES" >> $GITHUB_OUTPUT
fi

0 comments on commit a1fd372

Please sign in to comment.