Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 7 days ago
JSON representation

Github action which lets you to commit and push a file to a repository

Awesome Lists containing this project

README

        

# github-commit-push-file [![View Action](https://img.shields.io/badge/view-github%20action-yellow.svg)](https://github.com/marketplace/actions/github-commit-push-file) [![pipeline](https://img.shields.io/github/workflow/status/maxgfr/github-commit-push-file/build-test)](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.