Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

History

58 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

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

About

Git commit and push

Resources

Stars

61 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages