Skip to content

henrygriffiths/verified-commit-app

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

Verified Commit App

This action uses a user-generated app to author commits to a repository

Usage

- uses: henrygriffiths/verified-commit-app@v1
  with:
    app-id: ''
    # Required
    # ID of App

    app-key: ''
    # Required
    # App Private Key (Pem File)

    repository: ''
    # Optional
    # Repository to Commit To (Defaults to ${{ github.repository }})

    baseref: ''
    # Optional
    # Ref to Base Commit Off Of (Defaults to ${{ github.ref }})

    ref: ''
    # Optional
    # Ref to Commit To (Defaults to baseref Input)

    commitmsg: ''
    # Optional
    # Commit Message (Defaults to Empty)

    files: ''
    # Required
    # Files To Commit

Examples

Commit to Current Branch

- uses: henrygriffiths/verified-commit-app@v1
  with:
    app-id: ${{ secrets.app-id }}
    app-key: ${{ secrets.app-key }}
    commitmsg: 'message'
    files: |
      filea.txt
      fileb.txt

Commit to a Different Branch

- uses: henrygriffiths/verified-commit-app@v1
  with:
    app-id: ${{ secrets.app-id }}
    app-key: ${{ secrets.app-key }}
    commitmsg: 'message'
    ref: branch2
    files: |
      filea.txt
      fileb.txt

Commit to a Different Repository

- uses: henrygriffiths/verified-commit-app@v1
  with:
    app-id: ${{ secrets.app-id }}
    app-key: ${{ secrets.app-key }}
    repository: example/example
    baseref: main
    ref: main
    commitmsg: 'message'
    files: |
      filea.txt
      fileb.txt

License

This project is released under the MIT License

About

Commits Files to a Repository Using App Authorization

Resources

License

Stars

Watchers

Forks

Packages

No packages published