Skip to content

Commit 3de5530

Browse files
Update template_update.yml
1 parent 2687164 commit 3de5530

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/template_update.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ jobs:
108108
- name: Create template branch and merge
109109
id: merge
110110
shell: bash
111+
env:
112+
GH_TOKEN: ${{ secrets.token || github.token }}
111113
run: |
112114
set -euo pipefail
113115
@@ -155,6 +157,10 @@ jobs:
155157
git commit -m "chore: update from template ${OLD_SHA} → ${NEW_SHA} (with conflicts)"
156158
fi
157159
160+
if ! git remote get-url origin >/dev/null 2>&1; then
161+
git remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
162+
fi
163+
158164
git push origin "$BRANCH"
159165
echo "branch=$BRANCH" >> "$GITHUB_OUTPUT"
160166

0 commit comments

Comments
 (0)