Fetch CNB git files to local
CNB_TOKEN
Token required for accessing CNB open API
Requires read permission for file management repo-contents:r
Defaults to the environment variable CNB_TOKEN
Repository path
Repository branch, tag, or SHA
List of files to fetch
Multiple lines of text, with one path per line, for example:
a/b/c.txt
d/e.ts
f.yml
Directory to store the files
Use .
for the repository root directory
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