Skip to content

Commit

Permalink
replace push step with action at bumpup job
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkWeird committed Nov 9, 2021
1 parent ea39f52 commit 8395ba6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,18 @@ jobs:
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: make changes and push
- name: set release version
run: |
echo '${{ github.ref_name }}' > tag
git commit -a -m '[Automatic] bumpup version to ${{ github.ref_name }}'
git push origin master
- name: Push files and tag
uses: Amraneze/push-to-protected-branch@v1
with:
repository: 'gh-echojava'
branch_name: 'master'
github_user: 'DarkWeird'
github_token: ${{ github.token }}
commit_message: '[Automatic] bumpup version to ${{ github.ref_name }}'
files_to_commit: 'tag'



Expand Down

0 comments on commit 8395ba6

Please sign in to comment.