Create script/workflow to create tpip report and commit to main (#43) #1
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| paths: | |
| - '.github/workflows/tpip.yml' | |
| - docs/third-party-licenses.json | |
| - docs/tpip-header.md | |
| - scripts/tpip-reporter.ts | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| report: | |
| name: Generate Third-Party licenses report | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.ref_name }} | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version: '20' | |
| cache: 'yarn' | |
| - name: Install dependencies | |
| run: yarn --frozen-lockfile --prefer-offline | |
| - name: Generate third-party licenses report | |
| run: yarn run tpip:report | |
| - name: Commit changes | |
| run: | | |
| git config --local user.email "[email protected] | |
| git config --local user.name "GitHub Action" | |
| git add TPIP.md | |
| git commit -m "Update third-party licenses report [skip ci]" | |
| git push |