Ci package support #131
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: Check & Fix License Header | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build-license-eye: | |
name: Build LicenseEye | |
runs-on: [ubuntu-latest] | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Check License Header | |
uses: apache/skywalking-eyes/header@v0.5.0 | |
with: | |
config: .github/licenserc.yaml | |
mode: fix | |
- name: Apply Changes | |
uses: EndBug/add-and-commit@v9 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
author_name: License Bot | |
author_email: license_bot@github.com | |
message: "Automatic application of license header" |