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
name: License Compliance | |
on: | |
push: | |
jobs: | |
license_finder: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
permissions: | |
contents: write | |
pull-requests: read | |
env: | |
HTML_REPORT: docs/package-licenses.html | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Generate HTML report | |
run: date > "$HTML_REPORT" | |
- name: Commit HTML report and push | |
run: | | |
git remote set-url origin "https://github-actions:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}" | |
git config user.name 'github-actions[bot]' | |
git config user.email 'github-actions[bot]@users.noreply.github.com' | |
git add "$HTML_REPORT" | |
git commit -m "Update $HTML_REPORT" | |
git push origin HEAD:${{ github.ref_name }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |