Skip to content

Commit

Permalink
Revert "ci: remove license check jobs from the workflow file."
Browse files Browse the repository at this point in the history
This reverts commit 39db295.

Signed-off-by: Costin Lupu <[email protected]>
  • Loading branch information
clupuishere committed Nov 28, 2023
1 parent 8d2b7a5 commit 0ee8d89
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,29 @@ 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
license_update:
name: Check if rust crates license files needs updates
runs-on: ubuntu-latest
needs: license
continue-on-error: true
steps:
- run: test "${{ needs.license.outputs.license_changed }}" == "NO"

0 comments on commit 0ee8d89

Please sign in to comment.