Skip to content

Commit 9130632

Browse files
committed
Run for all bundles
1 parent 256d134 commit 9130632

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

.github/workflows/docs-configuration-reference.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,27 @@ jobs:
4141
- name: Checkout Symfony Docs repo
4242
run: git clone https://github.com/symfony/symfony-docs .github/workflows/docs-configuration-reference/docs
4343

44-
- name: Verify docs
45-
run: |
46-
cd .github/workflows/docs-configuration-reference
47-
./run.php `pwd`/symfony `pwd`/docs/reference/configuration/framework.rst FrameworkBundle > output.txt
48-
cat output.txt
44+
- name: Download dependencies
45+
run: composer install --no-interaction --optimize-autoloader
4946

50-
- name: Open issue
47+
- name: Verify docs
5148
env:
5249
GITHUB_TOKEN: ${{ secrets.CARSONPROD_GITHUB_TOKEN }}
5350
run: |
54-
if [ ! -s .github/workflows/docs-configuration-reference/output.txt ]; then
55-
echo "No issues to report"
56-
exit 0
57-
fi
58-
59-
echo -e "I found that there are some configuration missing for the FrameworkBundle configuration reference page. This is a list of what is missing: \n\n\`\`\`" > issue.txt
60-
cat .github/workflows/docs-configuration-reference/output.txt >> issue.txt
61-
echo -e "\n\`\`\`\n\nCould someone please add these?" >> issue.txt
62-
bin/console app:issue:open symfony/symfony-docs "Missing configuration reference" `pwd`/issue.txt
51+
CURRENT_DIR=$(pwd)
52+
for item in "debug:DebugBundle" "doctrine:DoctrineBundle" "framework:FrameworkBundle" "security:SecurityBundle" "twig:TwiBundle" "web_profiler:WebProfilerBundle"
53+
FILE=$(echo $item | cut -d ":" -f1)
54+
BUNDLE=$(echo $item | cut -d ":" -f2)
55+
56+
cd .github/workflows/docs-configuration-reference
57+
./run.php `pwd`/symfony `pwd`/docs/reference/configuration/$FILE.rst $BUNDLE > $CURRENT_DIR/output.txt
58+
cat output.txt
59+
60+
cd $CURRENT_DIR
61+
if [ -s ./output.txt ]; then
62+
echo -e "I found that there are some configuration missing for the $BUNDLE configuration reference page. This is a list of what is missing: \n\n\`\`\`" > issue.txt
63+
cat ./output.txt >> issue.txt
64+
echo -e "\n\`\`\`\n\nCould someone please add these?" >> issue.txt
65+
bin/console app:issue:open symfony/symfony-docs "[$BUNDLE] Missing configuration reference" `pwd`/issue.txt
66+
fi
67+
done

0 commit comments

Comments
 (0)