Skip to content

Bencher v0.4.21

Bencher v0.4.21 #2

on:
pull_request:
types: [closed]

Check failure on line 4 in .github/workflows/pr_benchmarks_closed.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr_benchmarks_closed.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
jobs:
archive_pr_branch:
name: Archive closed PR branch with Bencher
# DO NOT REMOVE: For handling Fork PRs see Pull Requests from Forks
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bencherdev/bencher@main
- name: Archive closed PR branch with Bencher
run: |
bencher archive \
--project example \
--token '${{ secrets.BENCHER_API_TOKEN }}' \
--branch '${{ github.head_ref }}'