- name: Clone GuillaumeFalourd/poc-github-actions PUBLIC repository
uses: GuillaumeFalourd/[email protected]
with:
depth: 1
branch: 'main'
owner: 'GuillaumeFalourd'
repository: 'poc-github-actions'
To use this action to clone a PRIVATE
repository the Github User/Admin has access to, it's necessary to create a PERSONAL ACCESS TOKEN with REPOSITORY
scopes.
- name: Clone GuillaumeFalourd/formulas-training PRIVATE repository
uses: GuillaumeFalourd/[email protected]
with:
owner: 'GuillaumeFalourd'
repository: 'formulas-training'
access-token: ${{ secrets.ACCESS_TOKEN }}
After using this action in your workflow, you can use the following command to access the cloned repository content:
cd <repository-name>
- name: Access cloned repository content
run: |
cd <repository-name>
ls -la
This repository uses the Apache License 2.0
https://github.com/GuillaumeFalourd/clone-github-repo-action