Commit f1d1abc 1 parent a9d2872 commit f1d1abc Copy full SHA for f1d1abc
File tree 2 files changed +57
-1
lines changed
2 files changed +57
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Taken from https://raw.githubusercontent.com/symfony/recipes/refs/heads/main/.github/workflows/callable-flex-update.yml
2
+ name : Update Flex endpoint
3
+
4
+ on :
5
+ workflow_call :
6
+ inputs :
7
+ branch :
8
+ default : main
9
+ required : false
10
+ type : string
11
+ contrib :
12
+ required : false
13
+ type : boolean
14
+ versions_json :
15
+ required : false
16
+ type : string
17
+
18
+ jobs :
19
+ flex-update :
20
+ name : Update Flex endpoint
21
+ runs-on : Ubuntu-latest
22
+
23
+ steps :
24
+ -
25
+ name : Checkout
26
+ uses : actions/checkout@v3
27
+ id : checkout
28
+ with :
29
+ fetch-depth : 0
30
+
31
+ -
32
+ name : Install tools
33
+ run : |
34
+ git config --global user.email ""
35
+ git config --global user.name "github-action[bot]"
36
+ cd .github
37
+ wget -q -O recipes-checker.zip https://codeload.github.com/symfony-tools/recipes-checker/zip/refs/heads/main
38
+ unzip recipes-checker.zip
39
+ cd recipes-checker-main
40
+ composer install --ansi --no-dev
41
+
42
+ -
43
+ name : Update Flex endpoint
44
+ run : |
45
+ mkdir .github/flex-endpoint
46
+ git ls-tree HEAD */*/* | php .github/recipes-checker-main/run generate:flex-endpoint ${{ github.repository }} ${{ inputs.branch }} flex/main .github/flex-endpoint ${{ inputs.versions_json }} ${{ inputs.contrib && '--contrib' || '' }}
47
+ git switch flex/main
48
+ git rm -q *.json
49
+ mv .github/flex-endpoint/*.json .
50
+ git add *.json
51
+ cp -a .github/flex-endpoint/archived .
52
+ git add archived/
53
+ php .github/recipes-checker-main/run generate:recipes-readme index.json ${{ inputs.contrib && '--contrib' || '' }} > RECIPES.md
54
+ git add RECIPES.md
55
+ git commit -m 'Update Flex endpoint' || true
56
+ git push origin -f flex/main
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ defaults:
11
11
12
12
jobs :
13
13
call-flex-update :
14
- uses : symfony/recipes/ .github/workflows/callable-flex-update.yml@main
14
+ uses : ./ .github/workflows/callable-flex-update.yaml
15
15
with :
16
16
branch : master
You can’t perform that action at this time.
0 commit comments