Skip to content

Commit

Permalink
test versionning
Browse files Browse the repository at this point in the history
  • Loading branch information
MozeBaltyk committed Jan 15, 2024
1 parent e7776dc commit 0bdf216
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/actions/update-readme/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,17 @@ runs:
sed -i -n -e "1,/<\!-- Release -->/ p" -e"/<\!-- End Release -->/,$ p" -e "/<\!-- Release -->/ r version.txt" CHANGELOG.md
# Git push
- name: Set env.BRANCH
run: echo "BRANCH=$(echo $GITHUB_REF | cut -d'/' -f 3)" >> $GITHUB_ENV

- name: Is develop branch?
if: env.BRANCH == 'develop'
run: echo "This is 'develop' branch"

- shell: bash
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add README.md CHANGELOG.md
[[ -z $(git status -uno --porcelain) ]] && echo "No need to commit..." || git commit -m "⚡ Update README & CHANGELOG"
git push origin HEAD:${{ github.ref_name }}
git push origin HEAD:$(echo $GITHUB_REF | cut -d'/' -f 3)

0 comments on commit 0bdf216

Please sign in to comment.