Skip to content

Commit 5d8fda3

Browse files
committed
Always output the latest release bundle tag in order to compare that tag with the latest dev tag before deciding to run integration tests
1 parent 5b1dcc8 commit 5d8fda3

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/get-latest-release-bundle.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,12 @@ jobs:
5858
bundle_version=$(echo "$latest_release_bundle_json_data" | jq -r '.release_bundle_version')
5959
echo bundle_version="$bundle_version" >> "$GITHUB_OUTPUT"
6060
61-
if [[ -z "$JFROG_EXPECTED_RELEASE_BUNDLE_TAG" ]]; then
62-
exit 0
61+
if [[ -n "$JFROG_EXPECTED_RELEASE_BUNDLE_TAG" ]]; then
62+
# Validate release bundle tag
63+
bundle_tag=$(echo "$latest_release_bundle_json_data" | jq -r '.tag')
64+
test "$bundle_tag" = "$JFROG_EXPECTED_RELEASE_BUNDLE_TAG"
6365
fi
6466
65-
# Validate release bundle tag
66-
bundle_tag=$(echo "$latest_release_bundle_json_data" | jq -r '.tag')
67-
test "$bundle_tag" = "$JFROG_EXPECTED_RELEASE_BUNDLE_TAG"
6867
echo bundle_tag="$bundle_tag" >> "$GITHUB_OUTPUT"
6968
env:
7069
JFROG_PROJECT: ${{ vars.JFROG_PROJECT_FOR_CLIENT_TEAM }}

0 commit comments

Comments
 (0)