update licenses #90
Workflow file for this run
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: Check License Headers | |
| env: | |
| GO_VERSION: "1.23" | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-license-headers: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Install Taskfile | |
| run: | | |
| curl -L https://taskfile.dev/install.sh | sh -s -- -b /usr/local/bin | |
| - name: Check license headers | |
| run: | | |
| task go:add-license-headers | |
| git diff --exit-code || (echo "License headers are missing. Please run 'task go:add-license-headers' to fix them." && exit 1) |