Test new gh-action

This commit is contained in:
streetturtle 2022-01-23 13:37:07 -05:00
parent ac49ade995
commit 18b5614e80
2 changed files with 18 additions and 0 deletions

11
.github/workflows/update-site.yml vendored Normal file
View File

@ -0,0 +1,11 @@
name: update site
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Rename readme file
run: ./screepts/update_site.sh

7
scripts/update_site.sh Normal file
View File

@ -0,0 +1,7 @@
for D in *; do
if [[ -d "${D}" ]] && [[ ${D} == *"-widget"* ]]; then
echo "${D}"
cp ${D}/README.md ./_widgets/${D}.md
sed -i '1s/^/---\nlayout: page\n---\n/' ./_widgets/${D}.md
fi
done