Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Verified commit

Actions
GitHub Action to create verified commits
v1.0.0
Star (18)

Commit

✅ Create a verified commit with GitHub Actions

⚠️ Warning

This action is still in development and the experience is subject to change. Use at your own risk.

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: swinton/commit@v1
      env:
        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        path: myfile
        commit-message: Committing ./myfile
        ref: refs/heads/my-branch

Note, the GH_TOKEN environment variable is required, since commits are created using GitHub's Git Database API.

Inputs

The following inputs are required:

  • path: Filesystem path of file to be committed, relative to root of repository, e.g. myfile
  • 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

Verified commit is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

GitHub Action to create verified commits
v1.0.0

Verified commit is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.