mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
do not quote token here
Adding quotes here, when the variable is empty you get: curl https://api.github.com/repos/fluxcd/flux2/releases/latest -sL '' (ref: https://github.com/kingdonb/bootstrap-repo/actions/runs/3991169408/jobs/6845685491#step:3:31 ) That does curl twice, once for the URL provided and again for the empty string, which results in curl returning error code 3 "malformed URL" Signed-off-by: Kingdon Barrett <kingdon@weave.works>
This commit is contained in:
parent
3a8765859d
commit
536f4c31ce
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ runs:
|
|||
fi
|
||||
|
||||
if [ -z "${VERSION}" ]; then
|
||||
VERSION=$(curl https://api.github.com/repos/fluxcd/flux2/releases/latest -sL "${TOKEN[@]}" | grep tag_name | sed -E 's/.*"([^"]+)".*/\1/' | cut -c 2-)
|
||||
VERSION=$(curl https://api.github.com/repos/fluxcd/flux2/releases/latest -sL ${TOKEN[@]} | grep tag_name | sed -E 's/.*"([^"]+)".*/\1/' | cut -c 2-)
|
||||
fi
|
||||
|
||||
BIN_URL="https://github.com/fluxcd/flux2/releases/download/v${VERSION}/flux_${VERSION}_linux_${ARCH}.tar.gz"
|
||||
|
|
|
|||
Loading…
Reference in a new issue