forked from docs/doc-exports
changing style
This commit is contained in:
@ -63,16 +63,14 @@ jobs:
|
||||
|
||||
- name: Load YAML and set outputs
|
||||
id: metadata
|
||||
shell: python
|
||||
run: |
|
||||
python3 <<EOF > parsed.env
|
||||
import yaml, os
|
||||
with open("metadata.yaml") as f:
|
||||
data = yaml.safe_load(f)
|
||||
print(f"SERVICE_TITLE={data['categories']['security-services'][0]['service_title']}")
|
||||
print(f"SERVICE_TYPE={data['categories']['security-services'][0]['service_type']}")
|
||||
print(f"SERVICE_CATEGORY={data['categories']['security-services'][0]['service_category']}")
|
||||
EOF
|
||||
cat parsed.env >> $GITHUB_ENV
|
||||
|
||||
- name: Use config values
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user