diff --git a/.github/workflows/callable-flex-update.yml b/.github/workflows/callable-flex-update.yml index 338bb3b0..c6a65f6b 100644 --- a/.github/workflows/callable-flex-update.yml +++ b/.github/workflows/callable-flex-update.yml @@ -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" diff --git a/.github/workflows/flex-update.yml b/.github/workflows/flex-update.yml index d57d0f97..eecea714 100644 --- a/.github/workflows/flex-update.yml +++ b/.github/workflows/flex-update.yml @@ -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 }}