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
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 theactions/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 theaction/checkout
action script does cleanup a working copy directory before the checkout.
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.
https://github.com/andry81-devops/gh-known-issues#known-issues
https://github.com/andry81-devops/gh-known-issues#last-known-issues-updates
Code and documentation copyright 2022 Andrey Dibrov. Code released under MIT License