Skip to content

Latest commit

History

History
72 lines (62 loc) · 1.63 KB

File metadata and controls

72 lines (62 loc) · 1.63 KB

commit

Git commit and push

Example

name: publishon:
push:
branches:
- masterjobs:
build:
runs-on: ubuntu-lateststeps:
- name: checkoutuses: actions/checkout@masterwith:
ref: master
- name: builduses: github-actions-x/hugo@master
- name: pushuses: github-actions-x/commit@v2.9with:
github-token: ${{ secrets.GITHUB_TOKEN }}push-branch: 'master'commit-message: 'publish'force-add: 'true'files: a.txt b.txt c.txt dirA/ dirB/ dirC/a.txtname: commiter nameemail: my.github@email.com 

If you use commit inside matrix, set variable rebase='true' for pulling and rebasing changes.

name: Node CIon:
push:
branches:
- masterjobs:
build:
runs-on: ubuntu-lateststrategy:
matrix:
node-version:
- 10.x
- 12.xsteps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}uses: actions/setup-node@v1with:
node-version: ${{ matrix.node-version }}
- name: generate benchmarksrun: | npm run generate-some-files-for-specific-node-version - name: pushuses: github-actions-x/commit@v2.9with:
github-token: ${{ secrets.GITHUB_TOKEN }}push-branch: mastercommit-message: '${{ matrix.node-version }} adds auto-generated benchmarks and bar graph'rebase: 'true'# pull and rebase before commit