Skip to content

Commit

Permalink
Fix branch-check logic and add status output
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Nov 6, 2024
1 parent 70c8312 commit 874b055
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/add-formula.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ jobs:
echo "CBMC_LATEST=${CBMC_LATEST}" >> "${GITHUB_ENV}"
# check whether we already have the formula
if [ -e "Formula/cbmc@${CBMC_LATEST}.rb" ] ; then
echo "Formula already exists"
echo "next_step=none" >> "${GITHUB_ENV}"
# check whether we already have a PR for the formula
elif ! git ls-remote --exit-code origin "cbmc-${CBMC_LATEST}" ; then
elif git ls-remote --exit-code origin "cbmc-${CBMC_LATEST}" ; then
echo "Branch cbmc-${CBMC_LATEST} already exists"
echo "next_step=none" >> "${GITHUB_ENV}"
else
CBMC_LATEST_REV=$(gh -R diffblue/cbmc release view cbmc-"${CBMC_LATEST}" --json targetCommitish | jq -r '.targetCommitish')
Expand Down

0 comments on commit 874b055

Please sign in to comment.