From 88e94278670e582a8bb9b05ce80aa20eceaa2974 Mon Sep 17 00:00:00 2001 From: Ibrahim Alhas <65875290+alhasacademy96@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:50:16 +0100 Subject: [PATCH] Update update_readme_markdown.yml --- .github/workflows/update_readme_markdown.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update_readme_markdown.yml b/.github/workflows/update_readme_markdown.yml index 675361f5b..08045267b 100644 --- a/.github/workflows/update_readme_markdown.yml +++ b/.github/workflows/update_readme_markdown.yml @@ -21,11 +21,11 @@ jobs: owner: 'Kinds-of-Intelligence-CFI', repo: 'animal-ai', }); - return response.data.tag_name; + core.setOutput('latest_tag', response.data.tag_name); # Set output - name: Update README.md file run: | - LATEST_RELEASE_TAG=${{ steps.get-latest-release.outputs.result }} + LATEST_RELEASE_TAG=${{ steps.get-latest-release.outputs.latest_tag }} LATEST_RELEASE_URL="https://github.com/Kinds-of-Intelligence-CFI/animal-ai/releases/tag/$LATEST_RELEASE_TAG" MD_FILE_PATH="./README.md" sed -i "s|\[latest release\].*|\[latest release\]($LATEST_RELEASE_URL)|" $MD_FILE_PATH @@ -51,9 +51,8 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v3 with: - title: "Update README with the latest release link - ${{ steps.get-latest-release.outputs.result }}" + title: "Update README with the latest release link - ${{ steps.get-latest-release.outputs.latest_tag }}" body: "Automatically generated by GitHub Actions." - branch: "update-readme-${{ steps.get-latest-release.outputs.result }}" + branch: "update-readme-${{ steps.get-latest-release.outputs.latest_tag }}" delete-branch: true token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} -