Skip to content
/ commit Public
forked from swinton/commit

✅ GitHub Action to create verified commits (Node 20)

License

Notifications You must be signed in to change notification settings

ChromeQ/commit

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
This branch is 4 commits ahead of swinton/commit:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 19, 2024
3556874 · May 19, 2024
May 19, 2024
May 19, 2024
May 19, 2024
May 19, 2024
Dec 11, 2020
May 19, 2024
Dec 7, 2020
Dec 4, 2020
May 19, 2024
May 19, 2024
May 19, 2024
Dec 11, 2020
Dec 13, 2020
Dec 13, 2020
May 19, 2024
May 19, 2024
Dec 12, 2020
Dec 4, 2020

Repository files navigation

Fork

This project is a fork of swinton/commit to simply update the NodeJS version to avoid the complaints and deprecations of Github Actions.

image

Commit

✅ Create a verified commit with GitHub Actions

code style: prettier

About

This action allows you to create a commit with GitHub Actions. Commits created with this actions will be marked as verified.

image

Usage

In your workflow, to commit a file ./myfile, include a step like this:

    - name: Commit file
      uses: chromeq/[email protected]
      with:
        files: |
          myfile
        commit-message: Committing ./myfile
        ref: refs/heads/my-branch

chromeq/commit only commits files that have changed.

To commit multiple files in a single commit, pass each file on a newline to the files input:

    - name: Commit files
      uses: chromeq/[email protected]
      with:
        files: |
          path/to/myfile1
          path/to/myfile2
          path/to/myfile3
        commit-message: Committing files
        ref: refs/heads/my-branch

Inputs

The token input is optional.

The following inputs are required:

  • files: Newline-separated list of files to be committed, relative to root of repository, e.g.
    myfile1
    myfile2
    ...
    myfileN
  • commit-message: Commit message to be used, e.g. Add ./myfile
  • ref: Fully qualified name of reference to be updated with commit, e.g. refs/heads/production. This reference must already exist. Defaults to the repository's default branch ref.

Outputs

This action provides the following outputs:

  • commit-sha: SHA of created commit

About

✅ GitHub Action to create verified commits (Node 20)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 90.8%
  • JavaScript 9.2%