-
-
Notifications
You must be signed in to change notification settings - Fork 487
46 lines (40 loc) · 1.47 KB
/
callable-flex-update-archived.yml
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 Archives
on:
workflow_call:
inputs:
branch:
default: main
required: false
type: string
jobs:
flex-update-archived:
name: Update Flex Archives
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 ""
git config --global user.name "github-action[bot]"
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 Archives
run: |
git switch ${{ inputs.branch }}
mkdir .github/archived
php .github/recipes-checker-main/run generate:archived-recipes . ${{ inputs.branch }} .github/archived
git switch flex/main
cp -a .github/archived .
git add archived/
git commit -m 'Update Flex archives' || true
git push origin -f flex/main