8000 Refactor action URL handling for flexibility · coder/setup-action@c659696 · GitHub
[go: up one dir, main page]

Skip to content

Commit c659696

Browse files
committed
Refactor action URL handling for flexibility
1 parent 82b2d66 commit c659696

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

action.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ runs:
2525
ARCH="amd64"
2626
fi
2727
mkdir -p "$HOME"/.local/bin
28-
curl -fsSL ${{ inputs.access_url }}/bin/coder-linux-${ARCH} -o $HOME/.local/bin/coder
29-
chmod +x $HOME/.local/bin/coder
28+
curl -fsSL "$CODER_URL"/bin/coder-linux-${ARCH} -o "$HOME"/.local/bin/coder
29+
chmod +x "$HOME"/.local/bin/coder
3030
echo "$HOME/.local/bin" >> $GITHUB_PATH
31-
$HOME/.local/bin/coder version
31+
"$HOME"/.local/bin/coder version
3232
shell: bash
33+
env:
34+
CODER_URL: ${{ inputs.access_url }}
3335

3436
- name: Login to Coder
3537
run: coder login --token $CODER_SESSION_TOKEN $CODER_URL

0 commit comments

Comments
 (0)
0