Skip to content

Commit 7e98b9b

Browse files
Manually upgrade recipes
1 parent ff900a2 commit 7e98b9b

File tree

86 files changed

+2546
-1092
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+2546
-1092
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Cleanup Flex testing endpoint
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
flex-cleanup:
8+
name: Cleanup Flex testing endpoint
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v2
15+
16+
-
17+
name: Cleanup Flex testing endpoint
18+
run: |
19+
git push origin :flex/pull-${{ github.event.number }} || true
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Update Flex Archives
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
branch:
7+
default: main
8+
required: false
9+
type: string
10+
11+
jobs:
12+
flex-update-archived:
13+
name: Update Flex Archives
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
-
18+
name: Checkout
19+
uses: actions/checkout@v2
20+
id: checkout
21+
with:
22+
fetch-depth: 0
23+
24+
-
25+
name: Install tools
26+
run: |
27+
git config --global user.email ""
28+
git config --global user.name "github-action[bot]"
29+
cd .github
30+
wget -q -O recipes-checker.zip https://codeload.github.com/symfony-tools/recipes-checker/zip/refs/heads/main
31+
unzip recipes-checker.zip
32+
cd recipes-checker-main
33+
composer install --ansi --no-dev
34+
-
35+
name: Update Flex Archives
36+
run: |
37+
git switch ${{ inputs.branch }}
38+
mkdir .github/archived
39+
php .github/recipes-checker-main/run generate:archived-recipes . ${{ inputs.branch }} .github/archived
40+
git switch flex/main
41+
cp -a .github/archived .
42+
git add archived/
43+
git commit -m 'Update Flex archives' || true
44+
git push origin -f flex/main
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Update Flex endpoint
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
branch:
7+
default: main
8+
required: false
9+
type: string
10+
contrib:
11+
required: false
12+
type: boolean
13+
versions_json:
14+
required: false
15+
type: string
16+
17+
jobs:
18+
flex-update:
19+
name: Update Flex endpoint
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
-
24+
name: Checkout
25+
uses: actions/checkout@v2
26+
id: checkout
27+
with:
28+
fetch-depth: 0
29+
30+
-
31+
name: Install tools
32+
run: |
33+
git config --global user.email ""
34+
git config --global user.name "github-action[bot]"
35+
cd .github
36+
wget -q -O recipes-checker.zip https://codeload.github.com/symfony-tools/recipes-checker/zip/refs/heads/main
37+
unzip recipes-checker.zip
38+
cd recipes-checker-main
39+
composer install --ansi --no-dev
40+
-
41+
name: Update Flex endpoint
42+
run: |
43+
mkdir .github/flex-endpoint
44+
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' || '' }}
45+
git switch flex/main
46+
git rm -q *.json
47+
mv .github/flex-endpoint/*.json .
48+
git add *.json
49+
cp -a .github/flex-endpoint/archived .
50+
git add archived/
51+
php .github/recipes-checker-main/run generate:recipes-readme index.json ${{ inputs.contrib && '--contrib' || '' }} > RECIPES.md
52+
git add RECIPES.md
53+
git commit -m 'Update Flex endpoint' || true
54+
git push origin -f flex/main
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Cleanup Flex testing endpoint
2+
3+
on:
4+
pull_request_target:
5+
types: [ closed ]
6+
7+
defaults:
8+
run:
9+
shell: bash
10+
11+
jobs:
12+
call-flex-cleanup:
13+
uses: Sylius/SyliusRecipes/.github/workflows/callable-flex-cleanup.yaml@main
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: Update Flex Archives
2+
3+
on: [workflow_dispatch]
4+
5+
jobs:
6+
call-flex-update:
7+
uses: Sylius/SyliusRecipes/.github/workflows/callable-flex-update-archived.yaml@main

.github/workflows/flex-update.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Update Flex endpoint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
jobs:
13+
call-flex-update:
14+
uses: Sylius/SyliusRecipes/.github/workflows/callable-flex-update.yaml@main

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require-dev": {
33
"php": "^8.1",
4-
"schranz-php-recipes/symfony-recipes-yaml-to-php-converter": "dev-main as 0.1"
4+
"schranz-php-recipes/symfony-recipes-yaml-to-php-converter": "dev-feature/simplify-upgrade as 0.1"
55
},
66
"minimum-stability": "dev"
77
}

0 commit comments

Comments
 (0)