Use new URLs for downloading workflows (#5524)

This commit is contained in:
Seth Vargo 2025-08-04 16:10:36 -04:00 committed by GitHub
parent 5caf23d627
commit 37b83e05a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View File

@ -49,7 +49,7 @@ describe('setupGithubCommand', () => {
`curl -fsSL -o "${fakeRepoRoot}/.github/workflows/gemini-issue-automated-triage.yml"`,
`curl -fsSL -o "${fakeRepoRoot}/.github/workflows/gemini-issue-scheduled-triage.yml"`,
`curl -fsSL -o "${fakeRepoRoot}/.github/workflows/gemini-pr-review.yml"`,
'https://raw.githubusercontent.com/google-github-actions/run-gemini-cli/refs/heads/main/workflows/',
'https://raw.githubusercontent.com/google-github-actions/run-gemini-cli/refs/heads/v0/examples/workflows/',
];
for (const substring of expectedSubstrings) {

View File

@ -27,9 +27,8 @@ export const setupGithubCommand: SlashCommand = {
throw new Error('Unable to determine the Git root directory.');
}
// TODO(#5198): pin workflow versions for release controls
const version = 'main';
const workflowBaseUrl = `https://raw.githubusercontent.com/google-github-actions/run-gemini-cli/refs/heads/${version}/workflows/`;
const version = 'v0';
const workflowBaseUrl = `https://raw.githubusercontent.com/google-github-actions/run-gemini-cli/refs/heads/${version}/examples/workflows/`;
const workflows = [
'gemini-cli/gemini-cli.yml',