From caff8ed1f2202f448d33c1079570ef1ff3110d2b Mon Sep 17 00:00:00 2001 From: Breakout-X The Rexercat <153556885+Breakout-X@users.noreply.github.com> Date: Thu, 31 Oct 2024 09:06:17 -0400 Subject: [PATCH] Update update-readme.yml --- .github/workflows/update-readme.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml index 84c6922..665a7bf 100644 --- a/.github/workflows/update-readme.yml +++ b/.github/workflows/update-readme.yml @@ -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
" >> .github/README.md grep -v '**Release Date:**' .github/README.md > temp && mv temp .github/README.md