forked from codeready-toolchain/toolchain-common
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.04 KB
/
verify-dependencies.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
42
43
44
45
46
47
48
name: verify-dependencies
on:
push:
branches:
- master
tags-ignore:
- '*.*'
pull_request:
branches:
- master
jobs:
verify-dependencies:
name: Verify Dependencies
runs-on: ubuntu-20.04
permissions:
contents: write
pull-requests: write
repository-projects: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Verify
run: |
make verify-replace-run
echo $ERRORREPOLIST >> $GITHUB_ENV
- name: Comment
uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: ${{ env.ERRORREPOLIST }}
})