Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 26 additions & 16 deletions .github/workflows/claude-token-optimizer.lock.yml

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion .github/workflows/claude-token-optimizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ network: defaults
timeout-minutes: 30

steps:
- name: Install gh-aw CLI
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if gh extension list | grep -q "github/gh-aw"; then
gh extension upgrade gh-aw || true
else
gh extension install github/gh-aw
fi
gh aw --version
- name: Find and download artifacts from the most expensive Claude workflow
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -52,7 +62,7 @@ steps:
mkdir -p /tmp/token-optimizer-claude

echo "📥 Loading Claude workflow runs from last 24 hours..."
./gh-aw logs \
gh aw logs \
--engine claude \
--start-date -1d \
--json \
Expand Down
42 changes: 26 additions & 16 deletions .github/workflows/claude-token-usage-analyzer.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion .github/workflows/claude-token-usage-analyzer.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ network: defaults
timeout-minutes: 30

steps:
- name: Install gh-aw CLI
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if gh extension list | grep -q "github/gh-aw"; then
gh extension upgrade gh-aw || true
else
gh extension install github/gh-aw
fi
gh aw --version
- name: Download Claude workflow runs (last 24h)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -44,7 +54,7 @@ steps:
mkdir -p /tmp/token-analyzer-claude

echo "📥 Downloading Claude workflow runs from last 24 hours..."
./gh-aw logs \
gh aw logs \
--engine claude \
--start-date -1d \
--json \
Expand Down
Loading
Loading