From 06d8cd5b724582c19d26a022bf219a893d78dda3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 11 Oct 2023 12:02:44 +0200 Subject: [PATCH] Make sure that we checkout on the right branch --- .github/workflows/trigger-benchmarks-on-message.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/trigger-benchmarks-on-message.yml b/.github/workflows/trigger-benchmarks-on-message.yml index 093349321..3383cc62d 100644 --- a/.github/workflows/trigger-benchmarks-on-message.yml +++ b/.github/workflows/trigger-benchmarks-on-message.yml @@ -27,6 +27,16 @@ jobs: reaction-type: "eyes" repo-token: ${{ env.GH_TOKEN }} + - uses: xt0rted/pull-request-comment-branch@v2 + id: comment-branch + with: + repo_token: ${{ env.GH_TOKEN }} + + - uses: actions/checkout@v3 + if: success() + with: + ref: ${{ steps.comment-branch.outputs.head_ref }} + # Set variables - name: Set current branch name shell: bash