build(deps-dev): bump @wdio/spec-reporter from 9.0.7 to 9.10.1 in /grist-deployment-tests #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Readme verifier | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
# Allows running this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Check README file exist in each subfolders | |
run: | | |
folders=$(find . -maxdepth 1 -type d -not -name ".*") | |
for folder in $folders; do | |
if [ ! -f "${folder}/README.md" ]; then | |
echo "🚨 $folder does not contain README.md file" | |
exit 1 | |
fi | |
done | |
- name: Check README files mentions the status | |
run: | | |
readme_files=*/README.md | |
for readme_file in $readme_files; do | |
if ! grep -q "^\*\*Status: \(✅ Ready to be used in production\|🧪 Experimental\)\*\*" $readme_file; then | |
echo "🚨 $readme_file does not contain readiness status of the util" | |
exit 1 | |
fi | |
done |