diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 899e3709a..8a11b3cec 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -12,31 +12,10 @@ permissions: pull-requests: write jobs: - prepare: - outputs: - branch: ${{ steps.get-branch.outputs.name }} - runs-on: ubuntu-latest - timeout-minutes: 5 - steps: - - uses: actions/checkout@v4 - - name: Get branch name - id: get-branch - run: | - if [[ "${{ github.event_name }}" == "issue_comment" && "${{ github.event.issue.pull_request.html_url }}" != "" ]]; then - # issue_comment (pull_request) - branch=$(gh pr view "${{ github.event.issue.pull_request.html_url }}" --json headRefName | jq -r ".headRefName") - echo "name=${branch}" | tee -a "$GITHUB_OUTPUT" - else - # workflow_dispatch or issue_comment (issue) - echo "name=${{ github.ref_name }}" | tee -a "$GITHUB_OUTPUT" - fi - # run benchmark benchmark: - needs: [prepare] uses: Cysharp/Actions/.github/workflows/benchmark.yaml@main with: - branch: ${{ needs.prepare.outputs.branch }} dotnet-version: "8.0" environment: benchmark benchmark-name: "magiconion-${{ github.event.issue.number || github.run_number }}"