Skip to content

Creates an auto-commit on a branch with changes of previous actions

License

Notifications You must be signed in to change notification settings

Mudlet/commit-branch-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Auto-commit GitHub Action

The purpose of this GitHub action is to auto-commit back any changes made to the branch through previous GitHub actions to a given branch.

Attention! This will force push to the named branch, so previous changes will be lost.

Use the GitHub action in the following way:

action "Filter master" {
  uses = "actions/bin/filter@46ffca7632504e61db2d4cb16be1e80f333cb859"
  args = "branch master"
}

action "Some action that changes files" {
  uses = "..."
  args = "..."
}

action "Auto-commit" {
  uses = "Mudlet/commit-branch-action@master"
  needs = ["Some action that changes files"]
  args = "This is an auto-commit"
  secrets = ["GITHUB_TOKEN"]
  env = {
    USERNAME = "mudlet-bot"
    USEREMAIL = "[email protected]"
    BRANCH_NAME = "translation-updates"
  }
}

This ensures that you run your action only on the master branch. The args field is used as your commit message. To modify the branch name, commiter name, and e-mail, adapt the env values accordingly.

About

Creates an auto-commit on a branch with changes of previous actions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published