Skip to content

Commit

Permalink
ci: remove license check jobs from the workflow file.
Browse files Browse the repository at this point in the history
Signed-off-by: Erdem Meydanli <[email protected]>
  • Loading branch information
meerd committed Sep 27, 2023
1 parent 2b72160 commit 39db295
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,3 @@ 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 39db295

Please sign in to comment.