Test new gh-action
This commit is contained in:
parent
ac49ade995
commit
18b5614e80
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue