chore(deps): update dependency rollup-plugin-license to v2.9.1 #1006
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: Check License Headers | |
on: | |
push: | |
branches: [dev] | |
pull_request: | |
branches: [dev] | |
workflow_dispatch: | |
jobs: | |
detect-duplicate-actions: | |
uses: ./.github/workflows/detect-duplicate-actions.yml | |
check-license-headers: | |
name: check-license-headers | |
needs: detect-duplicate-actions | |
if: ${{ needs.detect-duplicate-actions.outputs.should_skip != 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code (Non-PR) | |
uses: actions/checkout@v3 | |
if: ${{ github.event_name != 'pull_request' }} | |
- name: Checkout Code (PR) | |
uses: actions/checkout@v3 | |
if: ${{ github.event_name == 'pull_request' }} | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Fix License Header | |
uses: apache/skywalking-eyes/header@main | |
with: | |
mode: fix | |
log: info | |
config: .github/config/.licenserc.yml | |
- name: Push Changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: 'chore(license): add license header to files' | |
default_author: github_actions |