We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
$metadata
1 parent bd4a258 commit 2b95a62Copy full SHA for 2b95a62
.github/workflows/check-annual-update.yml
@@ -35,8 +35,7 @@ jobs:
35
for file in $md_files; do
36
37
# Extract metadata from Markdown file
38
- metadata=$(yq eval 'select(1)' $file)
39
- echo $metadata
+ metadata=$(awk '/^---$/{f=!f;next}f' "$file" | yq eval -o=json -)
40
41
# Extract date/path/title/author from the metadata
42
tutorial_date=$(echo "$metadata" | yq eval '.date' -)
0 commit comments