From c4d5512579852eecefc30f146e48b84e474c3209 Mon Sep 17 00:00:00 2001 From: b3hr4d Date: Sat, 2 Mar 2024 20:01:26 +0300 Subject: [PATCH] Update README.md to point to the latest release(v1.1.2) --- .github/workflows/update-readme.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml index 9d22fea908..b0a33e6da7 100644 --- a/.github/workflows/update-readme.yml +++ b/.github/workflows/update-readme.yml @@ -13,14 +13,16 @@ jobs: - name: Debugging - Show README content run: cat ./packages/core/README.md - - name: Update README + - name: Update README.md + run: | + sed -i "s/releases\/download\/.*\/ic-reactor-core.min.js/releases\/download\/v1.1.2\/ic-reactor-core.min.js/" ./packages/core/README.md + + - name: Commit and Push if changed run: | - LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`) - LATEST_RELEASE_NOTES=$(gh release view $LATEST_TAG --json body -q .body) - sed -i "/^## Latest Release/c\## Latest Release\n\n$LATEST_RELEASE_NOTES" ./packages/core/README.md git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git commit -am "Update README with the latest release info" + git add ./packages/core/README.md + git commit -m "Update README.md to point to the latest release(v1.1.2)" git push env: