Skip to content

Commit

Permalink
Update update-readme.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Breakout-X authored Oct 31, 2024
1 parent eb8af43 commit caff8ed
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ jobs:
run: |
VERSION=$(git describe --tags $(git rev-list --tags --max-count=1) 2>/dev/null || echo "v3.13.0")
DATE=$(date +'%a, %b %d, %Y')
echo "**Current Version:** $VERSION" > VERSION.txt
echo "**Release Date:** $(date +'%a, %b %d, %Y' || echo "Wed, Oct 30, 2024")" > DATE.txt
mkdir -p .temp
echo "**Current Version:** $VERSION" > .temp/VERSION.txt
echo "**Release Date:** $(date +'%a, %b %d, %Y' || echo "Wed, Oct 30, 2024")" > .temp/DATE.txt
- name: Update README
run: |
version=$(cat VERSION.txt)
date=$(cat DATE.txt)
version=$(cat .temp/VERSION.txt)
date=$(cat .temp/DATE.txt)
grep -v '**Current Version:**' .github/README.md > temp && mv temp .github/README.md
echo "$version <br>" >> .github/README.md
grep -v '**Release Date:**' .github/README.md > temp && mv temp .github/README.md
Expand Down

0 comments on commit caff8ed

Please sign in to comment.