mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +03:00
[ci] Fix BOT_TOKEN auth for the Flex endpoint update push
This commit is contained in:
@@ -13,6 +13,9 @@ on:
|
||||
versions_json:
|
||||
required: false
|
||||
type: string
|
||||
secrets:
|
||||
token:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
flex-update:
|
||||
@@ -52,4 +55,5 @@ jobs:
|
||||
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
|
||||
git config --local --unset-all http.https://github.com/.extraheader || true
|
||||
git push -f "https://x-access-token:${{ secrets.token }}@github.com/${{ github.repository }}" "flex/main"
|
||||
|
||||
@@ -14,3 +14,5 @@ jobs:
|
||||
uses: symfony/recipes/.github/workflows/callable-flex-update.yml@main
|
||||
with:
|
||||
versions_json: .github/versions.json
|
||||
secrets:
|
||||
token: ${{ secrets.BOT_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user