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: 30 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:
- Host: GitHub
- URL: https://github.com/andry81-devops/gh-action--git-checkout
- Owner: andry81-devops
- License: mit
- Created: 2022-04-15T06:50:55.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-02T12:12:02.000Z (4 months ago)
- Last Synced: 2025-03-29T14:23:46.449Z (about 2 months ago)
- Topics: action, action-extension, checkout, composite-action, devops, git, git-checkout, github-action
- Homepage: https://github.com/andry81-devops/github-action-extensions
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.txt
- Funding: .github/FUNDING.yml
- License: license.txt
Awesome Lists containing this project
README
---
Userlog
• Changelog
• Known issues
•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/tree/HEAD/license.txt)