Retrieve CNB git files to local
CNB_TOKENToken required for calling CNB open API
Needs file management read permission repo-contents:r
Default is the CNB_TOKEN in environment variables
Repository path
Repository branch, tag, or SHA
List of files to be retrieved
Multi-line text, one path per line, such as:
a/b/c.txt d/e.ts f.yml
_tmp_Directory for storing files
For repository root directory, fill in .
main:
push:
- stages:
- name: fetch-git-file
image: cnbcool/fetch-git-file
settings:
slug: xx/xx
ref: master
files: |
a/b/c.txt
d/e.ts
f.yml