Skip to content

Commit 6cc25dc

Browse files
committed
R readme
1 parent 30dfe51 commit 6cc25dc

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/sync_r.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,25 @@ jobs:
1414
with:
1515
fetch-depth: 0 # Need full history for subtree
1616

17-
- name: Setup Git
17+
- name: Debug PAT token
18+
env:
19+
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
20+
run: |
21+
if [ -z "$PAT_TOKEN" ]; then
22+
echo "PAT_TOKEN is empty or not set"
23+
else
24+
echo "PAT_TOKEN is set (length: ${#PAT_TOKEN})"
25+
fi
26+
27+
- name: Setup Git with PAT
28+
env:
29+
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
1830
run: |
1931
git config user.name "github-actions[bot]"
2032
git config user.email "github-actions[bot]@users.noreply.github.com"
21-
33+
git config url."https://x-access-token:${PAT_TOKEN}@github.com/".insteadOf "https://github.com/"
34+
2235
- name: Add remote and push subtree
23-
env:
24-
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
2536
run: |
26-
git remote add superintervals-r https://x-access-token:${PAT_TOKEN}@github.com/kcleal/superintervals-r.git
27-
git subtree push --prefix=src/R superintervals-r main
37+
git remote add superintervals-r https://github.com/kcleal/superintervals-r.git
38+
git subtree push --prefix=src/R superintervals-r main

0 commit comments

Comments
 (0)