This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Keptn dev version to integration tests (#314)
* feat: Add Keptn dev version to Integration tests Signed-off-by: TannerGabriel <gabrieltanner.code@gmail.com> * Sort before picking release version Signed-off-by: TannerGabriel <gabrieltanner.code@gmail.com> * Change Helm repo validation Signed-off-by: TannerGabriel <gabrieltanner.code@gmail.com> * Use specific actions version + Change action name Signed-off-by: TannerGabriel <gabrieltanner.code@gmail.com>
- Loading branch information
1 parent
c9667b1
commit db5686a
Showing
2 changed files
with
50 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# Fetch latest release and prerelease | ||
prerelease=$(curl -s https://api.github.com/repos/keptn/keptn/releases | jq -r 'map(select(.prerelease)) | sort_by(.tag_name)[-1].tag_name') | ||
release=$(curl --silent "https://api.github.com/repos/keptn/keptn/releases/latest" | jq -r '.tag_name') | ||
|
||
# Write variables as output | ||
echo "::set-output name=LATEST_RELEASE::$release" | ||
echo "::set-output name=LATEST_PRERELEASE::$prerelease" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters