Skip to content

Commit

Permalink
Allow different README caps formats (#21)
Browse files Browse the repository at this point in the history
* Allow different README caps formats

* add a default (empty) README var
  • Loading branch information
jazzsequence authored Mar 11, 2024
1 parent 186f00e commit a0c709f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build-tag-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ runs:
- name: Setup
shell: bash
run: |
VERSION=$(cat README.MD| grep 'Stable tag:' | awk '{print $3}')
README=""
for file in README.MD README.md readme.md Readme.md; do
if [[ -f "$file" ]]; then
README="$file"
break
fi
done
VERSION=$(cat "$README"| grep 'Stable tag:' | awk '{print $3}')
[[ "$VERSION" != "" ]] || exit 1
echo "VERSION=$VERSION" >> $GITHUB_ENV
Expand Down

0 comments on commit a0c709f

Please sign in to comment.