Skip to content

Commit bb2f99a

Browse files
authored
Merge pull request #5 from materialdigital/ThHanke-patch-2
Update seed.yml
2 parents b631edb + 2c65c9a commit bb2f99a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/seed.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,12 @@ jobs:
8787
# Set namespaces block automatically
8888
NS="https://w3id.org/pmd/ao/${{ github.event.inputs.uribase_suffix }}/"
8989
if grep -q "^namespaces:" "$CONFIG_FILE"; then
90-
sed -i "s|^namespaces:.*|namespaces:\n - $NS|" "$CONFIG_FILE"
90+
sed -i "/^namespaces:/,+1c\\
91+
namespaces:\\
92+
- $NS" "$CONFIG_FILE"
9193
else
9294
echo -e "\nnamespaces:\n - $NS" >> "$CONFIG_FILE"
9395
fi
94-
9596
echo "Updated seed-template.yaml content:"
9697
cat "$CONFIG_FILE"
9798
@@ -151,3 +152,4 @@ jobs:
151152
152153
This PR contains the generated ontology files from ODK seed.
153154
155+

0 commit comments

Comments
 (0)