Skip to content

Commit 9b1b545

Browse files
authored
fix: 🐛 Fix repository variable handling in setup-licensor action URLs (#11)
1 parent 81820de commit 9b1b545

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/actions/setup-licensor/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ inputs:
77
version:
88
description: Licensor version to install (e.g. "v1.2.3").
99
required: true
10+
repository:
11+
description: GitHub repository to download releases from (owner/repo).
12+
required: false
13+
default: nicebots-xyz/licensor
1014

1115
runs:
1216
using: composite
@@ -31,7 +35,7 @@ runs:
3135
*) echo "Unsupported OS: ${{ runner.os }}" >&2; exit 1 ;;
3236
esac
3337
34-
BASE_URL="https://github.com/${{ github.action_repository }}/releases/download/${VERSION}"
38+
BASE_URL="https://github.com/${{ inputs.repository }}/releases/download/${VERSION}"
3539
3640
curl -fsSL "${BASE_URL}/${ASSET}" -o "${ASSET}"
3741
curl -fsSL "${BASE_URL}/SHA256SUMS.txt" -o SHA256SUMS.txt

0 commit comments

Comments
 (0)