forked from docs/doc-exports
changing style
This commit is contained in:
@ -65,12 +65,15 @@ jobs:
|
||||
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: |
|
||||
@ -100,7 +103,7 @@ jobs:
|
||||
- name: Read project docs configuration and extract needed vars
|
||||
id: read_docs_config
|
||||
run: |
|
||||
python3 <<EOF > docs_vars.env
|
||||
python3 <<EOF
|
||||
import yaml
|
||||
import os
|
||||
import json
|
||||
|
||||
Reference in New Issue
Block a user