Skip to content

Commit

Permalink
release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Jan 2, 2025
1 parent b5c9a77 commit 84d68a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/build-with-chap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,15 @@ if [[ $TEST == 0 ]]; then
name=$(cat $cf | grep '^name:' | awk '{ print $2 }')
version=$(ls -1 $CHAP_DIR/_sources/$name | sort -V | tail -1)
rev=$(yq .github.rev $CHAP_DIR/_sources/$name/$version/meta.toml)
! { git branch -l --contains $rev --format="%(refname:short)" | grep -e '^\(master\|release//\)'; }
! { git branch -l --contains $rev --format="%(refname:short)" | grep -e '^\(main$\|release/\)'; }
if [[ $? == 0 ]]; then
echo "$name: revision $rev is not on the master or a 'release/*' branch."
echo "$name: revision $rev is not on the main or a 'release/*' branch."
exit 1
fi
done
fi

pushd $CHAP_DIR
git symbolic-ref --short HEAD
if [[ $TEST == 0 && $(git symbolic-ref --short HEAD) =~ ^network\/release- ]] then
gh pr comment --body "* [x] checked with \`build-with-chap.sh\` in \`ouroboros-network\`"
fi

0 comments on commit 84d68a8

Please sign in to comment.