Files
symfony-flex-recipes/.github/workflows/callable-flex-update-archived.yml
T

47 lines
1.5 KiB
YAML

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-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
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