Skip to content

maxgfr/github-commit-push-file

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

Repository files navigation

github-commit-push-file View Action pipeline

maxgfr/github-commit-push-file is a GitHub Action which lets you to commit and push a file to a repository.

Usage

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.