maxgfr/github-commit-push-file
is a GitHub Action which lets you to commit and push a file to a repository.
name: 'action-test'
on:
pull_request:
push:
jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create a file
run: |
echo "GITHUB_SHA=${GITHUB_SHA}" >> sha.txt
- name: Commit and push the file
uses: maxgfr/github-commit-push-file@main
with:
commit_name: 'fix: add new line to sha.txt'
Name | Type | Required | Description |
---|---|---|---|
commit_name | string | yes | Name of the commit. |