Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonye Jack committed Jul 31, 2020
1 parent de910b5 commit 3a8aed1
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --depth=1 origin +refs/heads/master:refs/remotes/origin/master
- run: git fetch origin +refs/tags/*:refs/tags/*
- name: Bumpversion release version.
uses: tj-actions/bumpversion@v1
id: bumpversion
with:
paths: |
README.md
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Updraded from ${{ steps.bumpversion.outputs.old_version }} -> ${{ steps.bumpversion.outputs.new_version }}
branch: master
repository: .
# Optional commit user and author settings
commit_user_name: GitHub Actions Bot
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com
commit_author: Author <actions@github.com>
# Optional: Disable dirty check and always try to create a commit and push
skip_dirty_check: true
- run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add README.md
git commit -m "Updraded from ${{ steps.bumpversion.outputs.old_version }} -> ${{ steps.bumpversion.outputs.new_version }}"
git checkout master
git merge ${{ github.ref }}
git push

0 comments on commit 3a8aed1

Please sign in to comment.