mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
fix(ci): handle empty APP_ID in stale PR closer (#20919)
This commit is contained in:
@@ -23,6 +23,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: 'Generate GitHub App Token'
|
- name: 'Generate GitHub App Token'
|
||||||
id: 'generate_token'
|
id: 'generate_token'
|
||||||
|
env:
|
||||||
|
APP_ID: '${{ secrets.APP_ID }}'
|
||||||
|
if: |-
|
||||||
|
${{ env.APP_ID != '' }}
|
||||||
uses: 'actions/create-github-app-token@v2'
|
uses: 'actions/create-github-app-token@v2'
|
||||||
with:
|
with:
|
||||||
app-id: '${{ secrets.APP_ID }}'
|
app-id: '${{ secrets.APP_ID }}'
|
||||||
@@ -33,7 +37,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DRY_RUN: '${{ inputs.dry_run }}'
|
DRY_RUN: '${{ inputs.dry_run }}'
|
||||||
with:
|
with:
|
||||||
github-token: '${{ steps.generate_token.outputs.token }}'
|
github-token: '${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}'
|
||||||
script: |
|
script: |
|
||||||
const dryRun = process.env.DRY_RUN === 'true';
|
const dryRun = process.env.DRY_RUN === 'true';
|
||||||
const thirtyDaysAgo = new Date();
|
const thirtyDaysAgo = new Date();
|
||||||
|
|||||||
Reference in New Issue
Block a user