update-kics #101
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
| # ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". | |
| name: update-kics | |
| on: | |
| workflow_dispatch: {} | |
| schedule: | |
| - cron: 0 9 * * THU | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.22.x | |
| - run: yarn install | |
| - run: go install github.com/goreleaser/goreleaser@latest | |
| - run: npx projen update-kics | |
| - uses: peter-evans/create-pull-request@v6 | |
| with: | |
| token: ${{ secrets.PROJEN_GITHUB_TOKEN }} | |
| title: "feat: update kics version" | |
| commit-message: "feat: update kics version" | |
| branch: automation/update-kics | |
| committer: GitHub Automation <[email protected]> | |
| labels: auto-approve | |
| - if: steps.create-pr.outputs.pull-request-number != 0 | |
| uses: peter-evans/enable-pull-request-automerge@v2 | |
| with: | |
| token: ${{ secrets.PROJEN_GITHUB_TOKEN }} | |
| pull-request-number: ${{ steps.create-pr.outputs.pull-request-number }} | |
| merge-method: squash |