fix(ci): authenticate bot pushes through checkout
This commit is contained in:
3 files changed
+3
-15
No files matched your search
@@ -83,6 +83,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.MCP_RELEASE_TOKEN }}
|
||||
|
||||
- name: Download agent version patch
|
||||
uses: actions/download-artifact@v4
|
||||
@@ -91,15 +92,10 @@ jobs:
|
||||
|
||||
- name: Apply and push agent version bump
|
||||
shell: bash
|
||||
env:
|
||||
RELEASE_TOKEN: ${{ secrets.MCP_RELEASE_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
if [ -n "${RELEASE_TOKEN}" ]; then
|
||||
git remote set-url origin "https://x-access-token:${RELEASE_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
|
||||
fi
|
||||
git fetch origin main --no-tags
|
||||
git switch --detach origin/main
|
||||
|
||||
|
||||
Reference in new issue
Block a user