-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (41 loc) · 1.68 KB
/
flex-update.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Update Flex endpoint
on:
push:
branches:
- master
jobs:
flex-update:
name: Update Flex endpoint
runs-on: Ubuntu-20.04
steps:
-
name: Checkout
uses: actions/checkout@v3
id: checkout
with:
fetch-depth: 0
-
name: Install tools
run: |
git config --global user.email "[email protected]"
git config --global user.name "Madame Biz"
cd .github
wget -q -O recipes-checker.zip https://codeload.github.com/symfony-tools/recipes-checker/zip/refs/heads/main
unzip recipes-checker.zip
cd recipes-checker-main
composer install --ansi --no-dev
-
name: Update Flex endpoint
run: |
mkdir .github/flex-endpoint
git ls-tree HEAD */*/* | php .github/recipes-checker-main/run generate:flex-endpoint ${{ github.repository }} master flex/master .github/flex-endpoint --contrib
git switch flex/master
git rm -q *.json
mv .github/flex-endpoint/*.json .
git add *.json
cp -a .github/flex-endpoint/archived .
git add archived/
php .github/recipes-checker-main/run generate:recipes-readme index.json --contrib > RECIPES.md
git add RECIPES.md
git commit -m 'Update Flex endpoint' || true
git push origin -f flex/master