bad import #9
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: "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 | |