Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andry81-devops/gh-action--git-checkout

GitHub composite action extension of actions/checkout action. • :page_with_curl: https://github.com/andry81-stats/gh-action--git-checkout--gh-stats :page_with_curl:
https://github.com/andry81-devops/gh-action--git-checkout

action action-extension checkout composite-action devops git git-checkout github-action

Last synced: 14 days ago
JSON representation

GitHub composite action extension of actions/checkout action. • :page_with_curl: https://github.com/andry81-stats/gh-action--git-checkout--gh-stats :page_with_curl:

Awesome Lists containing this project

README

        



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

---


Userlog
Changelog
Known issues
copyright 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:

```yml
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](https://github.com/andry81-devops/gh-action--git-checkout/blob/master/license.txt)