Skip to content

Commit

Permalink
retrieve bin dir from first step
Browse files Browse the repository at this point in the history
  • Loading branch information
nilscox committed Apr 24, 2023
1 parent 37f6e70 commit fa916be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ runs:
echo "Koyeb CLI already installed, skip installation"
fi
echo "bin-dir=$bin_dir" >> "$GITHUB_OUTPUT"
echo "is-installed=$is_installed" >> "$GITHUB_OUTPUT"
- name: Retrieve Koyeb CLI URL
Expand Down Expand Up @@ -54,11 +55,12 @@ runs:
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
KOYEB_CLI_BIN_DIR: ${{ steps.retrieve-koyeb-cli-url.outputs.bin-dir }}
KOYEB_CLI_URL: ${{ steps.retrieve-koyeb-cli-url.outputs.koyeb-cli-url }}
run: |
set -xeo pipefail
bin_dir="${{ github.action_path }}/bin"
bin_dir="$KOYEB_CLI_BIN_DIR"
mkdir "$bin_dir"
curl -sL -H "Authorization: Bearer $GITHUB_TOKEN" "$KOYEB_CLI_URL" | tar xvz -C "$bin_dir"
Expand Down

0 comments on commit fa916be

Please sign in to comment.