Skip to content

Github Action checkout only certain files

License

Notifications You must be signed in to change notification settings

makers99/checkout-files

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

checkout-files

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.

Inputs

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 }}

About

Github Action checkout only certain files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%