Skip to content

Commit 2b95a62

Browse files
authored
Update $metadata
1 parent bd4a258 commit 2b95a62

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/check-annual-update.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ jobs:
3535
for file in $md_files; do
3636
3737
# Extract metadata from Markdown file
38-
metadata=$(yq eval 'select(1)' $file)
39-
echo $metadata
38+
metadata=$(awk '/^---$/{f=!f;next}f' "$file" | yq eval -o=json -)
4039
4140
# Extract date/path/title/author from the metadata
4241
tutorial_date=$(echo "$metadata" | yq eval '.date' -)

0 commit comments

Comments
 (0)