run sundrylint
for https://github.com/mudler/LocalAI
#1667
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: run-repo | |
run-name: "run `sundrylint` for ${{github.event.inputs.repo_url}}" | |
on: | |
workflow_dispatch: | |
inputs: | |
repo_url: | |
description: "the repo to run linter" | |
default: "https://github.com/alingse/sundrylint" | |
required: true | |
permissions: | |
issues: write | |
jobs: | |
go-linter-runner-for-repo: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run go-linter-runner use direct job config | |
uses: alingse/go-linter-runner@v1.0.1 | |
with: | |
action: run | |
install_command: go build -o /usr/local/bin/sundrylint cmd/sundrylint/main.go | |
linter_command: sundrylint | |
includes: '["go", "github"]' | |
excludes: "[]" | |
issue_id: 3 | |
repo_url: ${{ inputs.repo_url }} | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |