Skip to content

Commit 842fd33

Browse files
authored
Add "Publish role to Galaxy" to github action changelog_to_tag.yml (#94)
Fix a bash bug in changelog_to_tag.yml, which unexpectedly expanded "*".
1 parent 3cdbdc9 commit 842fd33

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/changelog_to_tag.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
pat='\[[0-9]*\.[0-9]*\.[0-9]*\] - [0-9\-]*'
2323
print=false
2424
cat CHANGELOG.md | while read -r line; do
25-
if [[ $line =~ $pat ]] && [[ $print == false ]]; then
26-
echo $line
25+
if [[ "$line" =~ $pat ]] && [[ "$print" == false ]]; then
26+
echo "$line"
2727
print=true
28-
elif [[ $line =~ $pat ]] && [[ $print == true ]]; then
28+
elif [[ "$line" =~ $pat ]] && [[ "$print" == true ]]; then
2929
break
30-
elif [[ $print == true ]]; then
31-
echo $line
30+
elif [[ "$print" == true ]]; then
31+
echo "$line"
3232
fi
3333
done > ./.tagmsg.txt
3434
_tagname=$( grep -m 1 "[0-9]*\.[0-9]*\.[0-9]*" CHANGELOG.md | sed -e "s/^.*\[\([0-9]*\.[0-9]*\.[0-9]*\)\].*/\1/" )
@@ -55,3 +55,7 @@ jobs:
5555
body_path: ./.tagmsg.txt
5656
draft: false
5757
prerelease: false
58+
- name: Publish role to Galaxy
59+
uses: robertdebock/galaxy-action@1.2.0
60+
with:
61+
galaxy_api_key: ${{ secrets.galaxy_api_key }}

0 commit comments

Comments
 (0)