Skip to content

Commit

Permalink
update version in readme op dezelfde branch, poging #4
Browse files Browse the repository at this point in the history
  • Loading branch information
sTomerG committed Dec 11, 2024
1 parent 7411378 commit 03b5259
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/update-readme-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@ jobs:
- name: Commit and push changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git config --local user.name "github-actions[bot]"
if [[ -n "$(git status --porcelain)" ]]; then
git add README.md
git commit -m "docs: update README links to version ${{ steps.get_version.outputs.version }}"
git push origin HEAD:${{ steps.get_version.outputs.branch }}
fi
# Only commit if there are changes
if [[ -n "$(git status --porcelain)" ]]; then
git add README.md
git commit -m "docs: update README links to version ${{ steps.get_version.outputs.version }}"
# Push changes to the resolved branch
BRANCH=$(git branch --contains ${GITHUB_SHA} | grep -v 'HEAD' | xargs)
git push origin HEAD:$BRANCH
fi

0 comments on commit 03b5259

Please sign in to comment.