Skip to content

Commit 0cf31dc

Browse files
committed
[GHA] Copied callable-flex-update-archived from Symfony recipes to bump Ubuntu ver
1 parent f1d1abc commit 0cf31dc

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Taken from https://raw.githubusercontent.com/symfony/recipes/refs/heads/main/.github/workflows/callable-flex-update-archived.yml
2+
name: Update Flex Archives
3+
4+
on:
5+
workflow_call:
6+
inputs:
7+
branch:
8+
default: main
9+
required: false
10+
type: string
11+
12+
jobs:
13+
flex-update-archived:
14+
name: Update Flex Archives
15+
runs-on: Ubuntu-latest
16+
17+
steps:
18+
-
19+
name: Checkout
20+
uses: actions/checkout@v3
21+
id: checkout
22+
with:
23+
fetch-depth: 0
24+
25+
-
26+
name: Install tools
27+
run: |
28+
git config --global user.email ""
29+
git config --global user.name "github-action[bot]"
30+
cd .github
31+
wget -q -O recipes-checker.zip https://codeload.github.com/symfony-tools/recipes-checker/zip/refs/heads/main
32+
unzip recipes-checker.zip
33+
cd recipes-checker-main
34+
composer install --ansi --no-dev
35+
-
36+
name: Update Flex Archives
37+
run: |
38+
git switch ${{ inputs.branch }}
39+
40+
mkdir .github/archived
41+
php .github/recipes-checker-main/run generate:archived-recipes . ${{ inputs.branch }} .github/archived
42+
43+
git switch flex/main
44+
cp -a .github/archived .
45+
git add archived/
46+
git commit -m 'Update Flex archives' || true
47+
git push origin -f flex/main

.github/workflows/flex-update-archived.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ on: [workflow_dispatch]
44

55
jobs:
66
call-flex-update:
7-
uses: symfony/recipes/.github/workflows/callable-flex-update-archived.yml@main
7+
uses: ./.github/workflows/callable-flex-update-archived.yaml

0 commit comments

Comments
 (0)