Skip to content

Commit

Permalink
no newline echo
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
  • Loading branch information
alexandreLamarre committed Apr 22, 2024
1 parent 59bd1ee commit 7f6514a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/scripts/supported-versions.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
#!/bin/bash
# Prints supported versions based on the current release branch targeted
# Version output is in JSON

set -e
set -x


echo $GITHUB_OUTPUT
# Prints supported versions based on the current release branch targeted
# Version output is in JSON
echo "writing to output : $GITHUB_OUTPUT"

if git merge-base --is-ancestor origin/release/v5.0 HEAD
then
echo "[\"v1.23.9-k3s1\", \"v1.29.3-k3s1\"]" >> "$GITHUB_OUTPUT"
echo -n "[\"v1.23.9-k3s1\", \"v1.29.3-k3s1\"]" >> $GITHUB_OUTPUT
exit 0
elif git merge-base --is-ancestor origin/release/v4.0 HEAD
then
echo "[\"v1.23.9-k3s1\", \"v1.28.8-k3s1\"]" >> "$GITHUB_OUTPUT"
echo -n "[\"v1.23.9-k3s1\", \"v1.28.8-k3s1\"]" >> $GITHUB_OUTPUT
exit 0
elif git merge-base --is-ancestor origin/release/v3.0 HEAD
then
echo "[\"v1.16.9-k3s1\", \"v1.27.9-k3s1\"]" >> "$GITHUB_OUTPUT"
echo -n "[\"v1.16.9-k3s1\", \"v1.27.9-k3s1\"]" >> $GITHUB_OUTPUT
exit 0
fi

Expand Down

0 comments on commit 7f6514a

Please sign in to comment.