Giter Site home page Giter Site logo

mgrybyk / git-commit-pull-push-action Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 350 KB

Github Action to run git add, git commit, git pull and git push

License: MIT License

JavaScript 14.76% Shell 4.88% TypeScript 80.36%
git-commit git-pull git-push github-actions

git-commit-pull-push-action's Introduction

git-commit-pull-push-action

Runs git add, git commit, git pull and git push.

The action flow:

  1. git add (with add_args, defaults to .)
  2. check if there are any changed files
  3. git fetch
  4. git checkout branch (to allow push in PRs)
  5. git commit
  6. git pull (with pull_args, defaults to --rebase)
  7. git push

Originally designed to run git pull --rebase -X ours or git pull --rebase -X theirs after commit to help pushing changes to gh-pages.

Usage

- name: Git Commit and Push Action
  uses: mgrybyk-org/git-commit-pull-push-action@v1
  with:
    repository: gh-pages
    branch: gh-pages # ${{ github.head_ref }}
    commit_message: Apply automatic changes
    pull_args: --rebase -X ours

Merge strategy specific option

-X (same as --strategy-option).

  • ours: option forces conflicting chunks to be auto-resolved cleanly by favoring our (current) version (instead of incoming).
  • theirs: is the opposite of ours.

API

Please see action.yml

git-commit-pull-push-action's People

Contributors

mgrybyk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.