Duplicate index.json into main branch #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |