A action for cloning git repositories.
parameter | description | required | default |
---|---|---|---|
directory | Working directory | false |
. |
repositories | Repository owner and name eg: pixelfederation/gh-action-checkout | github.repository | main | . | 10 | github.token | true | |
verbose | be more verbose | false |
false |
nocheckout | try to not use checkout if repo already exists | false |
false |
repositories format is:
{repo name} | { branch or tag } | { destination dir} | OPTIONAL { depth } | OPTIONAL { auth token }
with depth 10
- name: clone test
id: clonetest
uses: pixelfederation/[email protected]
with:
repositories: |
kubernetes/ingress-nginx/ | main | ingress | 10
kubernetes/kubernetes/ | main | k8s | 10
kubernetes/autoscaler/ | main | autoscaler | 10
with token without depth
- name: clone again
id: cloneagain
uses: pixelfederation/[email protected]
with:
repositories: |
pxfd/Devops.Infra.tf-apps | master | tf-apps | | TOKEN
pxfd/Devops.Infra.tf-k8s | master | tf-k8s | | TOKEN