run nilnesserr
for https://github.com/akagami-harsh/Experience
#15164
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 `nilnesserr` for ${{github.event.inputs.repo_url}}" | |
on: | |
workflow_dispatch: | |
inputs: | |
repo_url: | |
description: "the repo to run linter" | |
default: "https://github.com/alingse/nilnesserr" | |
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@main | |
with: | |
action: run | |
go_version: "1.23.0" | |
install_command: go build -o /usr/local/bin/nilnesserr cmd/nilnesserr/main.go | |
linter_command: nilnesserr | |
includes: "[\"return a nil value error\"]" | |
excludes: "[]" | |
issue_id: 2 | |
repo_url: ${{ inputs.repo_url }} | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |