diff --git a/.github/workflows/update-contributors.yml b/.github/workflows/update-contributors.yml index 17c2e5d722..e774635a74 100644 --- a/.github/workflows/update-contributors.yml +++ b/.github/workflows/update-contributors.yml @@ -10,15 +10,15 @@ jobs: steps: - uses: actions/checkout@v4 - with: - # these are credentials for https://github.com/pyroscopebot - token: ${{ secrets.BOT_GITHUB_TOKEN }} - uses: actions/setup-go@v5 with: go-version: '1.22' - name: Update contributors run: make update-contributors + - name: Update git credentials + run: git remote set-url origin https://x-access-token:${{ secrets.BOT_GITHUB_TOKEN }}@github.com/${{ github.repository }} + - uses: stefanzweifel/git-auto-commit-action@v5 with: commit_user_name: Pyroscope Bot diff --git a/tools/update-contributors/main.go b/tools/update-contributors/main.go index 9841405812..088eaf22d2 100644 --- a/tools/update-contributors/main.go +++ b/tools/update-contributors/main.go @@ -121,6 +121,11 @@ func replaceReadme() error { return err } + _, err = f.WriteString("\n") + if err != nil { + return err + } + _, err = f.WriteString(s[end:]) if err != nil { return err