From 74fbe758f0f12632bcda4bb850e5934a817b3151 Mon Sep 17 00:00:00 2001 From: Ikiru Yoshizaki <3856350+guitarrapc@users.noreply.github.com> Date: Tue, 23 Jul 2024 20:15:31 +0900 Subject: [PATCH] ci: move branch handling to benchmark workflow --- .github/workflows/benchmark.yml | 21 --------------------- 1 file changed, 21 deletions(-) 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 }}"