Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxgfr/github-commit-push-file
Github action which lets you to commit and push a file to a repository
https://github.com/maxgfr/github-commit-push-file
actions commit commit-message files github github-actions push
Last synced: 4 months ago
JSON representation
Github action which lets you to commit and push a file to a repository
- Host: GitHub
- URL: https://github.com/maxgfr/github-commit-push-file
- Owner: maxgfr
- License: mit
- Created: 2022-05-25T16:07:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-06T06:18:38.000Z (7 months ago)
- Last Synced: 2024-10-26T11:36:20.931Z (4 months ago)
- Topics: actions, commit, commit-message, files, github, github-actions, push
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/github-commit-push-file
- Size: 290 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-commit-push-file [](https://github.com/marketplace/actions/github-commit-push-file) [](https://github.com/maxgfr/github-commit-push-file/actions/workflows/test-build.yml)
`maxgfr/github-commit-push-file` is a [GitHub Action](https://github.com/features/actions) which lets you to commit and push a file to a repository.
## Usage
```yaml
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'
```## Inputs
**Name**|**Type**|**Required**|**Description**
-----|-----|-----|-----
commit_name|string|yes|Name of the commit.