Skip to content

Commit

Permalink
fix if
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe committed Nov 14, 2024
1 parent 94da3d4 commit 9cb7229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/trigger_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
cmd="$GITHUB_WORKSPACE/METplus/metplus/component_versions.py -i METplotpy -v ${version} -o METplus -f main_v{X}.{Y}"
echo $cmd
metplus_branch=$($cmd)
if !git -C $GITHUB_WORKSPACE/METplus branch -l ${metplus_branch} --format '%(refname:short)'; then
echo "METplus branch ${metplus_branch} does not exist"
if [ -z "$(git -C $GITHUB_WORKSPACE/METplus branch -l ${metplus_branch} --format '%(refname:short)')" ]; then
echo "METplus branch ${metplus_branch} does not exist yet"
exit 1
fi
echo "metplus_branch=${metplus_branch}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 9cb7229

Please sign in to comment.