Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
maboesanman committed Dec 30, 2020
1 parent cbed703 commit c221579
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/CreateTag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.push_token }}
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo

- name: Set up Node.js
uses: actions/setup-node@master
Expand All @@ -34,7 +35,12 @@ jobs:

- name: Bump npm version
run: |
git config --global user.name "GitHub Action"
git config --global user.email "[email protected].github.com"
git config --local user.name "GitHub Action"
git config --local user.email "action@github.com"
npm version ${{ github.event.inputs.type }}
git push
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

0 comments on commit c221579

Please sign in to comment.