Skip to content

Commit

Permalink
ci(.github/workflows/docs.yml): correct docs impl
Browse files Browse the repository at this point in the history
  • Loading branch information
benjivesterby committed Mar 27, 2023
1 parent 1cec6ac commit c48c31b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
fi

awk -v file="$TEMPFILE" \
'BEGIN { show = 1 } /<!-- GODOC_START -->/ { show = 0; print; while (getline < file) print } /<!-- GODOC_END -->/ { show = 1; } show' \
README.md > README.md.new
'/<!-- GODOC_START -->/ { print; while (getline < file) print; next } 1' \
README.md | awk '/<!-- GODOC_END -->/ { p = 1 } p; /<!-- GODOC_START -->/ { p = 0 }' > README.md.new

mv README.md.new README.md

Expand Down

0 comments on commit c48c31b

Please sign in to comment.