github-action-benchmark icon indicating copy to clipboard operation
github-action-benchmark copied to clipboard

'auto-push' is enabled but 'github-token' is not set. Please give API token to push GitHub pages branch to remote

Open 0x8f701 opened this issue 4 years ago • 3 comments

I already set github-token but it still reports this

0x8f701 avatar May 11 '20 10:05 0x8f701

Same question.

My config:

  benchmark:
    runs-on: ubuntu-latest
    needs: test
    steps:
      - uses: actions/checkout@v2

      - name: Run benchmark
        run: go test -bench=".*" | tee output.txt

      - name: Store benchmark result
        uses: rhysd/github-action-benchmark@v1
        with:
          tool: 'go'
          output-file-path: output.txt
          github-token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
          auto-push: true
          comment-on-alert: true
          comment-always: true
          fail-on-alert: true

nodece avatar May 16 '20 14:05 nodece

Hi guys, I encountered the same problem, please make sure you have the secrets PERSONAL_GITHUB_TOKEN in your repository secrets setting tab. image

IWANABETHATGUY avatar Apr 07 '21 03:04 IWANABETHATGUY

Secrets can only be used in push action.

nodece avatar Apr 08 '21 06:04 nodece