diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 8a69338..af00c13 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -9,7 +9,22 @@ jobs: go-version: 1.15.x - name: Checkout code uses: actions/checkout@v2 + - name: Checkout staticcheck + uses: actions/checkout@v2 + with: + repository: dominikh/go-tools + ref: 8040d28b8db8066b19e5b7b89dcb7d59373a203c + path: 'go-tools' - name: Test run: | go version - go run scripts/benchmark/benchmark.go $GITHUB_SHA scripts/benchmark/BENCHMARK.template.md BENCHMARK.md \ No newline at end of file + go run scripts/benchmark/benchmark.go $GITHUB_SHA scripts/benchmark/BENCHMARK.template.md BENCHMARK.md + - name: Commit files + run: | + git config --local user.email "actions@github.com" + git config --local user.name "Automatic benchmark" + git commit -m "Update BENCHMARK.md" BENCHMARK.md + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file