Skip to content

Commit

Permalink
Add support for dynamic branch reference in action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pasqualesalza committed Dec 10, 2024
1 parent 87130a3 commit 38b713a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ runs:
id: git_checkout_no_lfs
uses: actions/[email protected]
with:
ref: ${{ inputs.head-branch }}
fetch-depth: ${{ inputs.head-only == 'true' && inputs.head-only-fetch-depth || env.HEAD_FETCH_DEPTH }}
lfs: false

Expand All @@ -70,6 +71,7 @@ runs:
id: git_checkout_lfs
uses: nschloe/[email protected]
with:
ref: ${{ inputs.head-branch }}
fetch-depth: ${{ inputs.head-only == 'true' && inputs.head-only-fetch-depth || env.HEAD_FETCH_DEPTH }}
token: ${{ inputs.lfs-token }}

Expand Down

0 comments on commit 38b713a

Please sign in to comment.