Move files to a different branch and make a commit. Useful for GitHub Action deployment.
Full article about this action
.github/workflows/deploy.yml:
name: deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- # build
- uses: ActionwareIO/branch-push-action@action
with:
branch: action
files: |
README.md
action.yml
./dist/index.js
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}