Skip to content

Commit 93a53f7

Browse files
committed
Use extraheader for git auth, add fail-fast: false
1 parent 0068a2b commit 93a53f7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/sync-classroom.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
1818
strategy:
19+
fail-fast: false
1920
matrix:
2021
include:
2122
- submodule: eliza-llm-course
@@ -47,9 +48,11 @@ jobs:
4748
git config user.name "github-actions[bot]"
4849
git config user.email "github-actions[bot]@users.noreply.github.com"
4950
50-
# Configure git to use the token for this specific remote
51-
git config --local credential.helper ""
52-
git config --local --add credential.helper "!f() { echo username=x-access-token; echo password=${GH_TOKEN}; }; f"
51+
# Clear any existing extraheader config that might interfere
52+
git config --local --unset-all http.https://github.com/.extraheader || true
53+
54+
# Set our token for GitHub
55+
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n "x-access-token:${GH_TOKEN}" | base64)"
5356
5457
CLASSROOM_URL="https://github.com/ContextLab/${{ matrix.classroom }}.git"
5558
git remote add classroom "$CLASSROOM_URL" 2>/dev/null || git remote set-url classroom "$CLASSROOM_URL"

0 commit comments

Comments
 (0)