Skip to content

Commit 7bae275

Browse files
committed
fix: auth for linux and macos fixes for generate action
1 parent 66f372a commit 7bae275

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/resource-request.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,12 @@ jobs:
262262
263263
Do NOT run git commands.
264264
265+
- name: Restore git remote auth
266+
if: steps.run-tests.outputs.passed == 'false'
267+
env:
268+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
269+
run: git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
270+
265271
- name: Commit Linux fixes
266272
if: steps.run-tests.outputs.passed == 'false'
267273
uses: stefanzweifel/git-auto-commit-action@v5
@@ -359,6 +365,12 @@ jobs:
359365
360366
Do NOT run git commands.
361367
368+
- name: Restore git remote auth
369+
if: steps.run-tests.outputs.passed == 'false'
370+
env:
371+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
372+
run: git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
373+
362374
- name: Commit macOS fixes
363375
if: steps.run-tests.outputs.passed == 'false'
364376
uses: stefanzweifel/git-auto-commit-action@v5

0 commit comments

Comments
 (0)