Skip to content
delete

GitHub Action

Goragit

v1 Latest version

Goragit

delete

Goragit

Ultimate Git workflow, not for people who cannot use Git properly

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Goragit

uses: narze/goragit@v1

Learn more about this action in narze/goragit

Choose a version

Goragit

The ultimate Git workflow, not for people who cannot use Git properly.

See in action (Clicking star ⭐ to this repo will trigger the demo workflow)

Prerequisites

  • Generate GitHub Personal Access Token (PAT) with repo scope
  • Create repo secret e.g. GH_TOKEN_WITH_REPO_SCOPE using generated PAT
  • Big Ego

Usage

name: Goragitize
on:
  push:
    branches: [main]
jobs:
  job:
    runs-on: ubuntu-latest
    
    steps:
      - uses: actions/checkout@v3
        with:
          # These options must be set
          fetch-depth: 0
          persist-credentials: false

      - uses: narze/goragit@main
        with:
          author_name: your-github-username
          author_email: your-email@example.com
          github_token_with_repo_scope: ${{ secrets.GH_TOKEN_WITH_REPO_SCOPE }}
          i_understand_that_this_workflow_will_goragodize_my_repo: true
          keep_git_history_in_message: false # Optional

Options

  • author_name Git commit author name (Default: github-actions)
  • author_email Git commit author email (Default: github-actions@noreply.github.com)
  • github_token_with_repo_scope [required] GitHub Personal Access Token (PAT) with Repo scope. See Prerequisites on how to setup.
  • i_understand_that_this_workflow_will_goragodize_my_repo [required] You must accept this power.
  • keep_git_history_in_message If true, your commit message will be prepended to the previous commit messages.