- Notifications
You must be signed in to change notification settings - Fork10
✅ GitHub Action to create verified commits
License
NotificationsYou must be signed in to change notification settings
swinton/commit
Use this GitHub action with your project
Add this Action to an existing workflow or create a new oneFolders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
✅ Create averified commit with GitHub Actions
This action allows you to create a commit with GitHub Actions. Commits created with this actions will be marked asverified.
In your workflow, to commit a file./myfile, include a step like this:
-name:Commit fileuses:swinton/commit@v2.xenv:GH_TOKEN:${{ secrets.GITHUB_TOKEN }}with:files:| myfilecommit-message:Committing ./myfileref:refs/heads/my-branch
Note, theGH_TOKEN environment variable isrequired, since commits are created using GitHub'sGit Database API.
To commit multiple files in a single commit, pass each file on a newline to thefiles input:
-name:Commit filesuses:swinton/commit@v2.xenv:GH_TOKEN:${{ secrets.GITHUB_TOKEN }}with:files:| path/to/myfile1 path/to/myfile2 path/to/myfile3commit-message:Committing filesref:refs/heads/my-branch
The following inputs arerequired:
files: Newline-separated list of files to be committed, relative to root of repository, e.g.myfile1
myfile2
...
myfileNcommit-message: Commit message to be used, e.g.Add ./myfileref: Fully qualified name of reference to be updated with commit, e.g.refs/heads/production. This referencemust already exist. Defaults to the repository's default branch ref.
This action provides the following outputs:
commit-sha: SHA of created commit
About
✅ GitHub Action to create verified commits
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Contributors2
Uh oh!
There was an error while loading.Please reload this page.
