diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ef8bdb58d..d927b8dc7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -244,8 +244,6 @@ jobs: matrix: node-version: - '20.x' - - '22.x' - - '24.x' shard: - 'cli' - 'others' diff --git a/.github/workflows/gemini-cli-bot-brain.yml b/.github/workflows/gemini-cli-bot-brain.yml index 64ba803b26..87efaa95f9 100644 --- a/.github/workflows/gemini-cli-bot-brain.yml +++ b/.github/workflows/gemini-cli-bot-brain.yml @@ -72,7 +72,7 @@ jobs: uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # ratchet:actions/checkout@v5 with: ref: '${{ steps.determine_ref.outputs.ref }}' - fetch-depth: 0 + fetch-depth: 1 persist-credentials: false - name: 'Setup Node.js' @@ -253,7 +253,7 @@ jobs: uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # ratchet:actions/checkout@v5 with: ref: '${{ steps.determine_ref.outputs.ref }}' - fetch-depth: 0 + fetch-depth: 1 persist-credentials: false - name: 'Download Brain Data' diff --git a/.github/workflows/gemini-cli-bot-pulse.yml b/.github/workflows/gemini-cli-bot-pulse.yml index b929444837..ed0aa65073 100644 --- a/.github/workflows/gemini-cli-bot-pulse.yml +++ b/.github/workflows/gemini-cli-bot-pulse.yml @@ -23,26 +23,35 @@ jobs: - name: 'Checkout' uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # ratchet:actions/checkout@v5 with: - fetch-depth: 0 + fetch-depth: 1 + + - name: 'Check for Reflex Scripts' + id: 'check_scripts' + run: | + if [ -d "tools/gemini-cli-bot/reflexes/scripts" ] && ls tools/gemini-cli-bot/reflexes/scripts/*.ts >/dev/null 2>&1; then + echo "has_scripts=true" >> "$GITHUB_OUTPUT" + else + echo "has_scripts=false" >> "$GITHUB_OUTPUT" + fi - name: 'Setup Node.js' + if: "steps.check_scripts.outputs.has_scripts == 'true'" uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions/setup-node@v4 with: node-version: '20' cache: 'npm' - name: 'Install dependencies' + if: "steps.check_scripts.outputs.has_scripts == 'true'" run: 'npm ci' - name: 'Run Reflex Processes' + if: "steps.check_scripts.outputs.has_scripts == 'true'" env: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' run: | - if [ -d "tools/gemini-cli-bot/reflexes/scripts" ] && [ "$(ls -A tools/gemini-cli-bot/reflexes/scripts)" ]; then - for script in tools/gemini-cli-bot/reflexes/scripts/*.ts; do - echo "Running reflex script: $script" - npx tsx "$script" - done - else - echo "No reflex scripts found." - fi + shopt -s nullglob + for script in tools/gemini-cli-bot/reflexes/scripts/*.ts; do + echo "Running reflex script: $script" + npx tsx "$script" + done