branch_name

This commit is contained in:
Andrey 2024-05-30 18:31:52 -04:00
parent 590886373c
commit 8706c3e69e
1 changed files with 6 additions and 0 deletions

View File

@ -32,3 +32,9 @@ jobs:
echo "OUT1=$OUT"
OUT=$(git branch -r | grep "origin/${{toJSON(inputs.branch_name)}}")
echo "OUT2=$OUT"
if echo "$OUT" | grep origin; then
echo "Branch exists! [$OUT]"
else
echo "${{toJSON(inputs.branch_name)}}: branch not found"
exit 1
fi