Skip to content
upload

GitHub Action

git-checkout-extension

v1.1.2 Latest version

git-checkout-extension

upload

git-checkout-extension

GitHub composite action extension of `actions/checkout` action

Installation

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

              

- name: git-checkout-extension

uses: andry81-devops/gh-action--git-checkout@v1.1.2

Learn more about this action in andry81-devops/gh-action--git-checkout

Choose a version

GitHub repo size in bytes lines of code by tokei.rs

GitHub views|any|total GitHub views|any|14d GitHub views|unique per day|total GitHub views|unique per day|14d

GitHub clones|any|total GitHub clones|any|14d GitHub clones|unique per day|total GitHub clones|unique per day|14d

GitHub commits since latest version latest release name GitHub all releases

donate


UserlogChangelogKnown issuescopyright and license Copyright and License

GitHub composite action extension of actions/checkout action.

Tutorial to use with: https://github.com/andry81-devops/github-action-extensions

All tutorials: https://github.com/andry81/index#tutorials

gh-action--git-checkout@master

Features:

  • Checks if a remote repository does exist and has a branch reference to delegate all input into https://github.com/actions/checkout action.

  • Otherwise calls to mkdir + git init instead of call to the actions/checkout action script.

  • Additionally can create working copy subdirectories after the call (mkdir-p extra parameter). Has a difference with a working copy subdirectory creation before the checkout, because the action/checkout action script does cleanup a working copy directory before the checkout.

USAGE

Example snippet:

steps:
  - uses: andry81-devops/gh-action--git-checkout@master
    with:
      repository: ...
      ref:        ...
      path:       ...
      token:      ...

      mkdir-p: >-
        ...

Note See REUSE section for details if you have multiple repositories and want to store all GitHub workflow scripts (.github/workflows/*.yml) in a single repository.

Known Issues

https://github.com/andry81-devops/gh-known-issues#known-issues

Last known issues updates

https://github.com/andry81-devops/gh-known-issues#last-known-issues-updates

Copyright and License

Code and documentation copyright 2022 Andrey Dibrov. Code released under MIT License