Skip to content

ch007m/test-github-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test GitHub actions

Project aimed to test GitHub Workflows, actions, syntax, etc

Testing locally how to share a matrix

#wget -q https://github.com/mikefarah/yq/releases/download/v4.34.2/yq_darwin_arm64 -O yq
#chmod +x yq
json_include=$(cat <<EOF | yq -P -o=json -
include:
  builder-image: [ 'paketobuildpacks/builder-jammy-tiny:0.0.175' ]
  pack_cli_version: [ 'v0.30.0-rc1' ]
EOF
)
json_include_oneline=$(echo $json_include | jq -c . -)
echo "matrix=$json_include_oneline"

Generate matrix output

export CFG=$(cat cfg.json)
jq -r -n  'env.CFG | fromjson | @json "::set-output name=result::\(.data)"'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages