Skip to content

Fleet Analyze

Fleet Analyze #114

Workflow file for this run

# Generated by @google/jules-fleet init
# https://github.com/google-labs-code/jules-sdk
name: Fleet Analyze
on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
inputs:
goal:
description: 'Path to goal file (or blank for all)'
type: string
default: ''
milestone:
description: 'Milestone ID override'
type: string
default: ''
concurrency:
group: fleet-analyze
cancel-in-progress: false
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Decode private key
id: decode-key
run: |
printf '%s' "${{ secrets.FLEET_APP_PRIVATE_KEY }}" | base64 -d > /tmp/fleet-app-key.pem
{
echo "pem<<PEMEOF"
cat /tmp/fleet-app-key.pem
echo "PEMEOF"
} >> "$GITHUB_OUTPUT"
rm /tmp/fleet-app-key.pem
- name: Generate Fleet App token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.FLEET_APP_ID }}
private-key: ${{ steps.decode-key.outputs.pem }}
- run: npx -y --package=@google/jules-fleet jules-fleet analyze --goal "${{ inputs.goal }}" --milestone "${{ inputs.milestone }}"
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
JULES_API_KEY: ${{ secrets.JULES_API_KEY }}
FLEET_APP_ID: ${{ secrets.FLEET_APP_ID }}
FLEET_APP_PRIVATE_KEY: ${{ secrets.FLEET_APP_PRIVATE_KEY }}
FLEET_APP_INSTALLATION_ID: ${{ secrets.FLEET_APP_INSTALLATION_ID }}