Make sure that we checkout on the right branch

This commit is contained in:
Clément Renault 2023-10-11 12:02:44 +02:00
parent c0fd3dffb8
commit 06d8cd5b72
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -27,6 +27,16 @@ jobs:
reaction-type: "eyes" reaction-type: "eyes"
repo-token: ${{ env.GH_TOKEN }} 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 # Set variables
- name: Set current branch name - name: Set current branch name
shell: bash shell: bash