forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (40 loc) · 1.19 KB
/
fix-pr.yaml
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
name: "Fix My PR"
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened, closed, synchronize]
permissions:
pull-requests: write
contents: write
jobs:
FixMyPR:
#if: ${{ github.event.issue.pull_request != null && github.event.comment.body == 'please fix my PR' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: ~1.20.10
cache: false
- name: Cache Go
id: go-cache
timeout-minutes: 5
uses: actions/cache@v3
with:
path: |
~/go/bin
~/go/pkg/mod
key: changelog-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: "Fix PR"
run: |
./.github/workflows/scripts/check-collector-module-version.sh
make generate gogci goporto gotidy crosslink genotelcontribcol gendependabot generate-gh-issue-templates
git config user.name github-actions
git config user.email [email protected]
git diff
git add .
git commit -a -m "Fix PR"
git push