-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (36 loc) · 1.17 KB
/
go-linter-runner.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: run go-linter-runner
run-name: "run for ${{ inputs.repo_url }}"
on:
workflow_dispatch:
inputs:
repo_url:
description: "the repo to run"
default: "https://github.com/alingse/makezero"
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 with yaml job config
uses: alingse/[email protected]
with:
action: run
yaml_config: .github/jobs/alingse-makezero.yaml
repo_url: ${{ inputs.repo_url }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run go-linter-runner use action config
uses: alingse/go-linter-runner@main
with:
action: run
install_command: go install github.com/alingse/makezero@f6a823578e89de5cdfdfef50d4a5d9a09ade16dd
linter_command: makezero
includes: '["go", "github"]'
excludes: '["assigned by index", "funcall", "called by funcs"]'
issue_id: 1
repo_url: ${{ inputs.repo_url }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}