From 8395ba684ebc397c705369d83d6e708d422adcde Mon Sep 17 00:00:00 2001 From: darkweird Date: Tue, 9 Nov 2021 12:01:13 +0300 Subject: [PATCH] replace push step with action at bumpup job --- .github/workflows/build.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bb74c7d..1e56d6e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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'