Skip to content

Commit

Permalink
SLVUU-109: Define files for readme and add comment to result
Browse files Browse the repository at this point in the history
  • Loading branch information
pling-scottlogic committed Nov 22, 2023
1 parent bdf5e6b commit f527c20
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/generate-readme.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

printf '[//]: # (This file is auto-generated by GitHub Actions. Please do not edit manually.\n\n)' > README_AUTO.md
{ xargs cat < ./docs/readme_contents.txt ; } >> README_AUTO.md
3 changes: 1 addition & 2 deletions .github/workflows/generate-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
# TODO: check if source docs have been changed
- name: Generate readme
run: cat docs/**/*.md > README_AUTO.md
run: generate-readme.sh
- name: Commit
uses: EndBug/add-and-commit@v9
with:
Expand Down
3 changes: 3 additions & 0 deletions docs/readme_contents.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
./docs/faq/a_new_file.md
./docs/faq/debugging_json_messages.md
./docs/faq/faq.md

0 comments on commit f527c20

Please sign in to comment.