File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -27,17 +27,22 @@ jobs:
2727 - name : Bundle OpenAPI spec
2828 run : npx @redocly/cli bundle openapi.json --output openapi-full.json
2929
30- - name : Configure Git
30+ - name : Manually set authenticated Git remote
3131 run : |
3232 git config user.name "github-actions[bot]"
3333 git config user.email "github-actions[bot]@users.noreply.github.com"
34+ git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
3435
35- - name : Commit and push changes
36- uses : stefanzweifel/git-auto-commit-action@v5
37- with :
38- commit_message : " chore: update bundled OpenAPI spec"
39- file_pattern : openapi-full.json
40- commit_user_name : " github-actions[bot]"
41- commit_user_email : " github-actions[bot]@users.noreply.github.com"
36+ - name : Commit and push changes manually
37+ run : |
38+ git add openapi-full.json
39+ if git diff --cached --quiet; then
40+ echo "No changes to commit."
41+ else
42+ git commit -m "chore: update bundled OpenAPI spec"
43+ git push origin HEAD
44+ fi
45+ env :
46+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4247
4348
You can’t perform that action at this time.
0 commit comments