Skip to content

Commit

Permalink
Add "Publish role to Galaxy" to github action changelog_to_tag.yml (#58)
Browse files Browse the repository at this point in the history
Fix a bash bug in changelog_to_tag.yml, which unexpectedly expanded "*".
  • Loading branch information
nhosoi authored Jul 21, 2022
1 parent 8a6d88a commit 061891c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/changelog_to_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
pat='\[[0-9]*\.[0-9]*\.[0-9]*\] - [0-9\-]*'
print=false
cat CHANGELOG.md | while read -r line; do
if [[ $line =~ $pat ]] && [[ $print == false ]]; then
echo $line
if [[ "$line" =~ $pat ]] && [[ "$print" == false ]]; then
echo "$line"
print=true
elif [[ $line =~ $pat ]] && [[ $print == true ]]; then
elif [[ "$line" =~ $pat ]] && [[ "$print" == true ]]; then
break
elif [[ $print == true ]]; then
echo $line
elif [[ "$print" == true ]]; then
echo "$line"
fi
done > ./.tagmsg.txt
_tagname=$( grep -m 1 "[0-9]*\.[0-9]*\.[0-9]*" CHANGELOG.md | sed -e "s/^.*\[\([0-9]*\.[0-9]*\.[0-9]*\)\].*/\1/" )
Expand All @@ -55,3 +55,7 @@ jobs:
body_path: ./.tagmsg.txt
draft: false
prerelease: false
- name: Publish role to Galaxy
uses: robertdebock/[email protected]
with:
galaxy_api_key: ${{ secrets.galaxy_api_key }}

0 comments on commit 061891c

Please sign in to comment.