Skip to content

andry81-devops/gh-action--git-checkout

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

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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