Skip to content

Commit

Permalink
Update update-release-version-in-readme.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alhasacademy96 authored Oct 23, 2024
1 parent 15aaa63 commit c6316ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/update-release-version-in-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

with:
fetch-depth: 0 # Fetch all history so we can push back to the branch

- name: Get latest release version
run: echo "LATEST_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV

Expand All @@ -24,4 +26,4 @@ jobs:
git config --global user.name "github-actions[bot]"
git add README.md
git commit -m "Update latest release version to $LATEST_VERSION"
git push
git push origin HEAD:main # Ensure we're pushing to the main branch

0 comments on commit c6316ef

Please sign in to comment.