We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2687164 commit 3de5530Copy full SHA for 3de5530
1 file changed
.github/workflows/template_update.yml
@@ -108,6 +108,8 @@ jobs:
108
- name: Create template branch and merge
109
id: merge
110
shell: bash
111
+ env:
112
+ GH_TOKEN: ${{ secrets.token || github.token }}
113
run: |
114
set -euo pipefail
115
@@ -155,6 +157,10 @@ jobs:
155
157
git commit -m "chore: update from template ${OLD_SHA} → ${NEW_SHA} (with conflicts)"
156
158
fi
159
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
+
164
git push origin "$BRANCH"
165
echo "branch=$BRANCH" >> "$GITHUB_OUTPUT"
166
0 commit comments