File tree Expand file tree Collapse file tree 4 files changed +172
-693
lines changed
docs-configuration-reference Expand file tree Collapse file tree 4 files changed +172
-693
lines changed Original file line number Diff line number Diff line change
1
+ name : Verify docs
2
+
3
+ on :
4
+ schedule :
5
+ - cron : ' 58 6 * * *'
6
+
7
+ jobs :
8
+ use :
9
+ name : Configuration reference
10
+ runs-on : ubuntu-latest
11
+ strategy :
12
+ fail-fast : false
13
+
14
+ steps :
15
+ - name : Set up PHP
16
+ uses : shivammathur/setup-php@2.7.0
17
+ with :
18
+ php-version : 7.4
19
+ coverage : none
20
+
21
+ - name : Checkout code
22
+ uses : actions/checkout@v2
23
+
24
+ - name : Get composer cache directory
25
+ id : composer-cache
26
+ run : echo "::set-output name=dir::$(composer config cache-files-dir)"
27
+
28
+ - name : Cache dependencies
29
+ uses : actions/cache@v2
30
+ with :
31
+ path : ${{ steps.composer-cache.outputs.dir }}
32
+ key : composer-${{ runner.os }}-7.4-${{ hashFiles('composer.*') }}
33
+ restore-keys : |
34
+ composer-${{ runner.os }}-7.4-
35
+ composer-${{ runner.os }}-
36
+ composer-
37
+
38
+ - name : Checkout Symfony repo
39
+ run : composer create-project --stability dev symfony/website-skeleton .github/workflows/docs-configuration-reference/symfony
40
+
41
+ - name : Checkout Symfony Docs repo
42
+ run : git clone https://github.com/symfony/symfony-docs .github/workflows/docs-configuration-reference/docs
43
+
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
49
+
50
+ - name : Open issue
51
+ env :
52
+ GITHUB_TOKEN : ${{ secrets.CARSONPROD_GITHUB_TOKEN }}
53
+ 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
You can’t perform that action at this time.
0 commit comments