Skip to content

Add callable action to repopulate the recipe archives #1038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/callable-flex-update-archived.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Update Flex Archives

on:
workflow_call:
inputs:
branch:
default: master
required: false
type: string

jobs:
flex-update-archived:
name: Update Flex Archives
runs-on: Ubuntu-20.04

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