Skip to content

Commit 6e04206

Browse files
Merge branch 'main'
* main: Adding a new callable recipes readme GH action Always run "Setup PHP" steps Clean CI config Enable Automerge Specify license for recipes-checker-main lint:pull-request Test recipes on Symfony 5&6 Fix escaping args in commands Fix linting JSON files Hit raw.githubusercontent.com to work around rate limiting Add callable action to repopulate the recipe archives Copying the "archived/" directory from recipes-checker Add reusable workflows
2 parents f54b694 + 844d33f commit 6e04206

File tree

5 files changed

+453
-0
lines changed

5 files changed

+453
-0
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-20.04
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: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Update Flex Archives
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
branch:
7+
default: master
8+
required: false
9+
type: string
10+
11+
jobs:
12+
flex-update-archived:
13+
name: Update Flex Archives
14+
runs-on: Ubuntu-20.04
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+
39+
mkdir .github/archived
40+
php .github/recipes-checker-main/run generate:archived-recipes . ${{ inputs.branch }} .github/archived
41+
42+
git switch flex/main
43+
cp -a .github/archived .
44+
git add archived/
45+
git commit -m 'Update Flex archives' || true
46+
git push origin -f flex/main
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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-20.04
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+
-
42+
name: Update Flex endpoint
43+
run: |
44+
mkdir .github/flex-endpoint
45+
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' || '' }}
46+
git switch flex/main
47+
git rm -q *.json
48+
mv .github/flex-endpoint/*.json .
49+
git add *.json
50+
cp -a .github/flex-endpoint/archived .
51+
git add archived/
52+
git commit -m 'Update Flex endpoint' || true
53+
git push origin -f flex/main

0 commit comments

Comments
 (0)