Skip to content

Commit

Permalink
Update update_readme_markdown.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alhasacademy96 authored Oct 23, 2024
1 parent 58f4b6d commit 88e9427
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/update_readme_markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 88e9427

Please sign in to comment.