Skip to content

Commit

Permalink
Fix substitution
Browse files Browse the repository at this point in the history
Signed-off-by: Timothée Barray <tim@amicalement-web.net>
  • Loading branch information
tyx authored and Sébastien HOUZÉ committed Jun 20, 2023
1 parent 81b3c2d commit 5fa03f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ runs:
shell: bash
run: |
REPO="https://${GITHUB_ACTOR}:${{ inputs.token }}@github.com/${GITHUB_REPOSITORY}.git"
BRANCH="${inputs.branch/#refs\/heads\//}"
INPUT_BRANCH=${{inputs.branch}}
BRANCH="${INPUT_BRANCH/#refs\/heads\//}"
git clone --filter=blob:none --no-checkout --depth 1 --sparse $REPO .
git sparse-checkout init --cone --sparse-index
git sparse-checkout set ${{ inputs.patterns }}
Expand Down

0 comments on commit 5fa03f4

Please sign in to comment.