Skip to content

Commit 91ad3e7

Browse files
authored
[gha] Correct installer tag finding for IDE integration tests (#20704)
* Revert GHA tag grep on script Tool: gitpod/catfood.gitpod.cloud * Fix GHA Tool: gitpod/catfood.gitpod.cloud * fixup Tool: gitpod/catfood.gitpod.cloud
1 parent 9759449 commit 91ad3e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: .github/workflows/ide-integration-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
fi
7373
7474
{
75-
echo "version=$(gh run view "$RUNID" --log -R gitpod-io/gitpod | grep 'main-gha\.[0-9]*' -o | head -n 1)"
75+
echo "version=$(gh run view "$RUNID" --log -R gitpod-io/gitpod | grep 'Build Gitpod' | grep 'Tag the release' | grep 'main-gha\.[0-9]*' -o | head -n 1)"
7676
echo "name=ide-integration-test-${{ github.run_id }}-${{ github.run_attempt }}"
7777
} >> $GITHUB_OUTPUT
7878
fi

Diff for: components/ide/gha-update-image/lib/common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const getInstallerVersion = async (version: string | undefined) => {
121121
}
122122
}
123123
const installationVersion =
124-
await $`echo '${tagInfo}' | awk '{ print $2 }' | grep -o 'main-gha\\.[0-9]*' | cut -d'/' -f3`
124+
await $`echo '${tagInfo}' | awk '{ print $2 }' | grep -o 'main-gha.[0-9]*' | cut -d'/' -f3`
125125
.text()
126126
.catch((e) => {
127127
throw new Error("Failed to parse installer version from git tag: " + e);

0 commit comments

Comments
 (0)