github-action-benchmark
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
I already set github-token
but it still reports this
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
Hi guys, I encountered the same problem, please make sure you have the secrets PERSONAL_GITHUB_TOKEN
in your repository secrets setting tab.
Secrets can only be used in push
action.