mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
continue (#8886)
Co-authored-by: gemini-cli-robot <gemini-cli-robot@google.com>
This commit is contained in:
@@ -57,8 +57,6 @@ jobs:
|
|||||||
run: |-
|
run: |-
|
||||||
git config user.name "gemini-cli-robot"
|
git config user.name "gemini-cli-robot"
|
||||||
git config user.email "gemini-cli-robot@google.com"
|
git config user.email "gemini-cli-robot@google.com"
|
||||||
# Configure git to use GITHUB_TOKEN for remote operations (has actions:write for workflow files)
|
|
||||||
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git"
|
|
||||||
|
|
||||||
- name: 'Create Patch'
|
- name: 'Create Patch'
|
||||||
id: 'create_patch'
|
id: 'create_patch'
|
||||||
|
|||||||
@@ -95,17 +95,7 @@ async function main() {
|
|||||||
console.log(
|
console.log(
|
||||||
`Release branch ${releaseBranch} does not exist. Creating it from tag ${latestTag}...`,
|
`Release branch ${releaseBranch} does not exist. Creating it from tag ${latestTag}...`,
|
||||||
);
|
);
|
||||||
// Workaround for workflow permission issues: create branch from HEAD then reset to tag
|
run(`git checkout -b ${releaseBranch} ${latestTag}`, dryRun);
|
||||||
run(`git checkout -b ${releaseBranch}`, dryRun);
|
|
||||||
run(`git reset --hard ${latestTag}`, dryRun);
|
|
||||||
|
|
||||||
// Ensure we're using GITHUB_TOKEN (with actions:write) for pushing workflow files
|
|
||||||
const githubToken = process.env.GITHUB_TOKEN;
|
|
||||||
const repo = process.env.GITHUB_REPOSITORY || 'google-gemini/gemini-cli';
|
|
||||||
if (githubToken) {
|
|
||||||
run(`git remote set-url origin https://x-access-token:${githubToken}@github.com/${repo}.git`, dryRun);
|
|
||||||
}
|
|
||||||
|
|
||||||
run(`git push origin ${releaseBranch}`, dryRun);
|
run(`git push origin ${releaseBranch}`, dryRun);
|
||||||
} else {
|
} else {
|
||||||
console.log(`Release branch ${releaseBranch} already exists.`);
|
console.log(`Release branch ${releaseBranch} already exists.`);
|
||||||
|
|||||||
Reference in New Issue
Block a user