Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ jobs:
if [ "$FULLSEND_VERSION" = "latest" ]; then
FULLSEND_VERSION=$(gh release view --repo fullsend-ai/fullsend --json tagName -q .tagName)
fi
if [ -z "$FULLSEND_VERSION" ]; then
echo "::error::Failed to resolve fullsend version"
exit 1
Comment thread
ralphbean marked this conversation as resolved.
Resolved
fi
{ echo 'FULLSEND_VERSION<<GHEOF'; echo "${FULLSEND_VERSION}"; echo 'GHEOF'; } >> "$GITHUB_ENV"
VERSION_NUM="${FULLSEND_VERSION#v}"
TARBALL="fullsend_${VERSION_NUM}_linux_amd64.tar.gz"
gh release download "$FULLSEND_VERSION" \
Expand All @@ -173,8 +178,12 @@ jobs:
env:
Comment thread
ralphbean marked this conversation as resolved.
Resolved
GH_TOKEN: ${{ github.token }}
run: |
FULLSEND_TAG="${FULLSEND_VERSION:-$(gh release view --repo fullsend-ai/fullsend --json tagName -q .tagName)}"
eval "$(gh api "repos/fullsend-ai/fullsend/contents/.github/scripts/openshell-version.sh?ref=${FULLSEND_TAG}" --jq .content | base64 -d | grep -E '^OPENSHELL_(VERSION|SHA)=')"
eval "$(gh api "repos/fullsend-ai/fullsend/contents/.github/scripts/openshell-version.sh?ref=${FULLSEND_VERSION}" --jq .content | base64 -d | grep -E '^OPENSHELL_(VERSION|SHA)=')"
if [ -z "$OPENSHELL_VERSION" ] || [ -z "$OPENSHELL_SHA" ]; then
SAFE_VERSION=$(echo "$FULLSEND_VERSION" | tr -d '\n\r' | sed -e 's/%0[aAdD]//g' -e 's/::/: :/g')
echo "::error::Failed to resolve OpenShell version from fullsend tag ${SAFE_VERSION}"
exit 1
fi
echo "OPENSHELL_VERSION=${OPENSHELL_VERSION}" >> "$GITHUB_ENV"
Comment thread
ralphbean marked this conversation as resolved.
Resolved
echo "OPENSHELL_SHA=${OPENSHELL_SHA}" >> "$GITHUB_ENV"
Comment thread
ralphbean marked this conversation as resolved.
Resolved
mkdir -p "$HOME/.config/openshell"
Expand All @@ -192,10 +201,9 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
FULLSEND_TAG="${FULLSEND_VERSION:-$(gh release view --repo fullsend-ai/fullsend --json tagName -q .tagName)}"
SCRIPT_DIR="$(mktemp -d)"
gh api "repos/fullsend-ai/fullsend/contents/.github/scripts/install-openshell.sh?ref=${FULLSEND_TAG}" --jq .content | base64 -d > "${SCRIPT_DIR}/install-openshell.sh"
gh api "repos/fullsend-ai/fullsend/contents/.github/scripts/openshell-version.sh?ref=${FULLSEND_TAG}" --jq .content | base64 -d > "${SCRIPT_DIR}/openshell-version.sh"
gh api "repos/fullsend-ai/fullsend/contents/.github/scripts/install-openshell.sh?ref=${FULLSEND_VERSION}" --jq .content | base64 -d > "${SCRIPT_DIR}/install-openshell.sh"
gh api "repos/fullsend-ai/fullsend/contents/.github/scripts/openshell-version.sh?ref=${FULLSEND_VERSION}" --jq .content | base64 -d > "${SCRIPT_DIR}/openshell-version.sh"
chmod +x "${SCRIPT_DIR}/install-openshell.sh"
"${SCRIPT_DIR}/install-openshell.sh"

Expand Down
Loading