Skip to content

Commit

Permalink
ci: debug
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Howard <[email protected]>
  • Loading branch information
jhoward-lm committed Nov 15, 2024
1 parent e51c8f0 commit 0783d93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ readonly SCRIPT_DIR
# shellcheck source=/dev/null
source "${SCRIPT_DIR}/utils.sh"

# Resolve relative install-dir path to absolute.
[[ ${INSTALL_DIR:=$HOME/.bomctl} != /* ]] && INSTALL_DIR="${GITHUB_WORKSPACE}/${INSTALL_DIR#.\/}"

archive_ext=".tar.gz"
install_path="${INSTALL_DIR:=$HOME/.bomctl}/bomctl"
install_path="${INSTALL_DIR}/bomctl"
install_version="${VERSION:=latest}"
releases_api="https://api.github.com/repos/bomctl/bomctl/releases"
semver_pattern="^v[0-9]+(\.[0-9]+){0,2}$"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ jobs:
expected="${{ matrix.install-dir || '$HOME/.bomctl' }}/bomctl"
[[ $expected != /* ]] && expected="${GITHUB_WORKSPACE}/${expected#.\/}"
log_info "DEBUG: expected $expected"
log_info "DEBUG: BOMCTL_BIN $BOMCTL_BIN"
log_info "Verifying binary was installed into specified install-dir..."
if [[ $BOMCTL_BIN != $expected ]]; then
exit_with_error "Install path does not match expected path"
Expand Down

0 comments on commit 0783d93

Please sign in to comment.