Skip to content

Commit 874b055

Browse files
committed
Fix branch-check logic and add status output
1 parent 70c8312 commit 874b055

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/add-formula.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ jobs:
2626
echo "CBMC_LATEST=${CBMC_LATEST}" >> "${GITHUB_ENV}"
2727
# check whether we already have the formula
2828
if [ -e "Formula/cbmc@${CBMC_LATEST}.rb" ] ; then
29+
echo "Formula already exists"
2930
echo "next_step=none" >> "${GITHUB_ENV}"
3031
# check whether we already have a PR for the formula
31-
elif ! git ls-remote --exit-code origin "cbmc-${CBMC_LATEST}" ; then
32+
elif git ls-remote --exit-code origin "cbmc-${CBMC_LATEST}" ; then
33+
echo "Branch cbmc-${CBMC_LATEST} already exists"
3234
echo "next_step=none" >> "${GITHUB_ENV}"
3335
else
3436
CBMC_LATEST_REV=$(gh -R diffblue/cbmc release view cbmc-"${CBMC_LATEST}" --json targetCommitish | jq -r '.targetCommitish')

0 commit comments

Comments
 (0)