File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Update RECIPES.md
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ # branch where the RECIPES.md will be committed
7+ branch :
8+ required : true
9+ type : string
10+ contrib :
11+ required : false
12+ type : boolean
13+
14+ jobs :
15+ call-recipe-readme-update :
16+ name : Update RECIPES.md
17+ runs-on : Ubuntu-20.04
18+
19+ steps :
20+ -
21+ name : Checkout
22+ uses : actions/checkout@v2
23+ id : checkout
24+ with :
25+ fetch-depth : 0
26+
27+ -
28+ name : Install tools
29+ run : |
30+ git config --global user.email ""
31+ git config --global user.name "github-action[bot]"
32+ cd .github
33+ wget -q -O recipes-checker.zip https://codeload.github.com/symfony-tools/recipes-checker/zip/refs/heads/main
34+ unzip recipes-checker.zip
35+ cd recipes-checker-main
36+ composer install --ansi --no-dev
37+
38+ -
39+ name : Generate Recipes README
40+ run : |
41+ mkdir .github/recipe-readme
42+ git switch flex/main
43+ php .github/recipes-checker-main/run generate:recipes-readme index.json ${{ inputs.contrib && '--contrib' || '' }} > .github/recipe-readme/RECIPES.md
44+ git switch ${{ inputs.branch }}
45+ cp .github/recipe-readme/RECIPES.md RECIPES.md
46+ git add RECIPES.md
47+ git commit -m 'Update Recipes README' || true
48+ git push origin ${{ inputs.branch }}
You can’t perform that action at this time.
0 commit comments