-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (36 loc) · 1.18 KB
/
run-repo.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-repo
run-name: "run `makezero` for ${{github.event.inputs.repo_url}}"
on:
workflow_dispatch:
inputs:
repo_url:
description: "the repo to run linter"
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: Example -> go-linter-runner run with yaml job config
uses: alingse/go-linter-runner@main
with:
action: run
yaml_config: .github/jobs/alingse-makezero.yaml
repo_url: ${{ inputs.repo_url }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Example -> go-linter-runner use direct job 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"]'
issue_id: 1
repo_url: ${{ inputs.repo_url }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}