bug fix #83
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bump version | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
bump-version: | |
if: "startsWith(github.event.head_commit.message, 'azeazeazezaezaeazeazeazeaze')" | |
runs-on: ubuntu-latest | |
name: "Bump version and create changelog with standard version" | |
steps: | |
- name: Check out | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}' | |
- name: Git config | |
run: | | |
git config --local user.name "github-actions[bot]" | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Create bump and changelog | |
run: npx capacitor-standard-version | |
- name: Push to origin | |
run: | | |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" | |
git pull $remote_repo $CURRENT_BRANCH | |
git push $remote_repo HEAD:$CURRENT_BRANCH --follow-tags --tags |