From 38b713a78baead9507b583cd2f0611b3b21ebbdd Mon Sep 17 00:00:00 2001 From: Pasquale Salza Date: Tue, 10 Dec 2024 14:21:42 +0100 Subject: [PATCH] Add support for dynamic branch reference in action.yml --- action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/action.yml b/action.yml index 529fb4b..af7f376 100644 --- a/action.yml +++ b/action.yml @@ -62,6 +62,7 @@ runs: id: git_checkout_no_lfs uses: actions/checkout@v4.2.2 with: + ref: ${{ inputs.head-branch }} fetch-depth: ${{ inputs.head-only == 'true' && inputs.head-only-fetch-depth || env.HEAD_FETCH_DEPTH }} lfs: false @@ -70,6 +71,7 @@ runs: id: git_checkout_lfs uses: nschloe/action-cached-lfs-checkout@v1.2.2 with: + ref: ${{ inputs.head-branch }} fetch-depth: ${{ inputs.head-only == 'true' && inputs.head-only-fetch-depth || env.HEAD_FETCH_DEPTH }} token: ${{ inputs.lfs-token }}