diff --git a/.github/workflows/callable-flex-update.yml b/.github/workflows/callable-flex-update.yml index cb0159bb..5bc6a93a 100644 --- a/.github/workflows/callable-flex-update.yml +++ b/.github/workflows/callable-flex-update.yml @@ -49,5 +49,7 @@ jobs: git add *.json cp -a .github/flex-endpoint/archived . git add archived/ + php .github/recipes-checker-main/run generate:recipes-readme index.json ${{ inputs.contrib && '--contrib' || '' }} > RECIPES.md + git add RECIPES.md git commit -m 'Update Flex endpoint' || true git push origin -f flex/main diff --git a/.github/workflows/callable-recipe-readme-update.yml b/.github/workflows/callable-recipe-readme-update.yml deleted file mode 100644 index 22235f88..00000000 --- a/.github/workflows/callable-recipe-readme-update.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Update RECIPES.md - -on: - workflow_call: - inputs: - contrib: - required: false - type: boolean - -jobs: - call-recipe-readme-update: - name: Update RECIPES.md - 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: Generate Recipes README - run: | - mkdir .github/recipe-readme - git switch flex/main - php .github/recipes-checker-main/run generate:recipes-readme index.json ${{ inputs.contrib && '--contrib' || '' }} > .github/recipe-readme/RECIPES.md - cp .github/recipe-readme/RECIPES.md RECIPES.md - git add RECIPES.md - git commit -m 'Update Recipes README' || true - git push origin flex/main diff --git a/.github/workflows/flex-update.yml b/.github/workflows/flex-update.yml index ab4d6278..d57d0f97 100644 --- a/.github/workflows/flex-update.yml +++ b/.github/workflows/flex-update.yml @@ -14,7 +14,3 @@ jobs: uses: symfony/recipes/.github/workflows/callable-flex-update.yml@main with: versions_json: .github/versions.json - - call-recipe-readme-update: - needs: 'call-flex-update' - uses: symfony/recipes/.github/workflows/callable-recipe-readme-update.yml@main