Github Action to checkout only certain files or folders. Useful if only need certain file, like config or assets for your workflow, instead of pulling all the repo.
files
A list of files with the path relative to the $GITHUB_WORKSPACE
.
You can also specify a folder and the action will recessively pull all the files.
- name: Check out configuration
uses: Bhacaz/checkout-files@v1
with:
files: Gemfile Gemfile.lock .ruby-version config
token: ${{ github.token }}
token
A Github Private Access Token.
- uses: Bhacaz/checkout-files@v1
with:
token: ${{ secrets.token }}
branch
Checkout the files from a specific branch instead of master.
- uses: Bhacaz/checkout-files
with:
branch: ${{ github.event.inputs.branch }}