This commit is contained in:
parent
f1fdb5caa1
commit
c10518b997
10
.drone.yml
10
.drone.yml
@ -18,14 +18,12 @@ steps:
|
|||||||
latestReleaseTag=$(curl -s "https://api.github.com/repos/insignia-live/setup-assistant-release/releases/latest" | jq -r '.tag_name')
|
latestReleaseTag=$(curl -s "https://api.github.com/repos/insignia-live/setup-assistant-release/releases/latest" | jq -r '.tag_name')
|
||||||
targetReleaseTag="2023-02-13-1223" # Replace with your target release tag
|
targetReleaseTag="2023-02-13-1223" # Replace with your target release tag
|
||||||
|
|
||||||
if [[ "$latestReleaseTag" > "$targetReleaseTag" ]]; then
|
if [[ "$latestReleaseTag" != "$targetReleaseTag" ]]; then
|
||||||
echo "This pipeline is run because the new release is newer than the one I have."
|
echo "This pipeline is run because the new release is different from the target tag."
|
||||||
elif [[ "$latestReleaseTag" = "$targetReleaseTag" ]]; then
|
|
||||||
echo "The release tag is the same as the target tag."
|
|
||||||
echo "Running testing step..."
|
echo "Running testing step..."
|
||||||
else
|
else
|
||||||
echo "The new release is older than the one I have."
|
echo "The release tag is the same as the target tag. Skipping testing step."
|
||||||
exit 0 # Trigger the testing step
|
exit 0
|
||||||
fi
|
fi
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user