chore(deps): bump github.com/spf13/pflag from 1.0.6 to 1.0.10 #13
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: go-licenses | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .github/licenses.tmpl | |
| - .github/workflows/go-licenses.yaml | |
| - go.mod | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| update-licenses: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Install go-licenses | |
| run: | | |
| go install github.com/google/[email protected] | |
| - name: Run go-licenses | |
| run: GOROOT=$(go env GOROOT) go-licenses report ./... > docs/pages/licenses/devspace.mdx --template .github/licenses.tmpl --ignore github.com/loft-sh | |
| - name: Check invalid licenses | |
| run: | | |
| if cat docs/pages/licenses/devspace.mdx | grep '^ - ' | grep -Evi "apache|bsd|mit|isc|python|postgre|x11|zlib"; then | |
| echo "ERR: Found invalid licenses!" | |
| exit 1 | |
| fi | |
| - name: Create pull request | |
| uses: peter-evans/create-pull-request@v5 | |
| with: | |
| token: ${{ secrets.GH_ACCESS_TOKEN }} | |
| committer: Loft Bot <[email protected]> | |
| branch: licenses/devspace | |
| commit-message: "license(devspace): Updated OSS licenses" | |
| title: "license(devspace): Updated OSS licenses" | |
| body: Triggered by ${{ github.repository }}@${{ github.sha }} | |
| signoff: true | |
| delete-branch: true |