Skip to content

Duplicate index.json into main branch #11

Duplicate index.json into main branch

Duplicate index.json into main branch #11

Workflow file for this run

name: Update Flex endpoint
on:
push:
branches:
- main
defaults:
run:
shell: bash
jobs:
call-flex-update:
uses: symfony/recipes/.github/workflows/callable-flex-update.yml@main
with:
contrib: true
duplicate-index:
name: Duplicate index.json into main branch
runs-on: Ubuntu-20.04
steps:
-
name: Checkout git repository
uses: actions/checkout@v3
id: checkout
with:
fetch-depth: 0
- name: Configure git
run: |
git config --global user.email ""
git config --global user.name "github-action[bot]"
-
name: Duplicate index.json into main branch
run: |
git checkout origin/flex/main index.json
git commit -m 'Duplicate Flex index' || true
git push origin main