Skip to content

qoomon/actions--setup-git

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Setup Git   Actions

This GitHub Action will automatically setup following git configs to be ready for git commit and git push commands

  • User Config
    • user.name value depends on userinput field
    • user.email value depends on user input field
  • Push Config
    • push.autoSetupRemote = true

Inputs

  • user valid values
    • bot (default) - configure github-actions[bot] as git user
    • actor - configure github actions context github.actor as git user
    • committer - configure committer from HEAD commit as git user
    • USER_NAME <USER_EMAIL> - configure git user explicitly

Example

jobs:
  example:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: qoomon/actions--setup-git@v1
        with:
          user: bot

      - run: |
          date > dummy.txt
          git add dummy.txt
          git commit -m "chore: update dummy"
          git push

Development

Release New Action Version

Trigger Release Version workflow

About

GitHub Action to setup git user config

Resources

License

Stars

Watchers

Forks

Packages

No packages published