Skip to content

Commit

Permalink
Fix meta-pacakge support (#10)
Browse files Browse the repository at this point in the history
tag_and_release will work for meta-package.
  • Loading branch information
at-wat authored Jan 8, 2020
1 parent 36d57fe commit 44397d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ on:
push:
paths:
- package.xml
- '*/package.xml'
branches:
- master

Expand Down
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ git config --global user.email ${INPUT_GIT_EMAIL}

if [ "${INPUT_TAG_AND_RELEASE}" == "true" ]
then
version=$(sed -e ':l;N;$!b l;s/\n/ /g;s|^.*<version>\(.*\)</version>.*|\1|' package.xml)
manifest=$(find . -name package.xml | head -n1)
version=$(sed -e ':l;N;$!b l;s/\n/ /g;s|^.*<version>\(.*\)</version>.*|\1|' ${manifest})
if ! git ls-remote --exit-code origin ${version}
then
echo "Tag ${version} not found. Adding..."
Expand Down

0 comments on commit 44397d9

Please sign in to comment.