Skip to content

Commit e5bf2a9

Browse files
committed
chore(gallery agent): small fixes
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 05aba5a commit e5bf2a9

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/gallery-agent.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,21 @@ jobs:
7676
id: read_summary
7777
if: steps.check_changes.outputs.changes == 'true'
7878
run: |
79-
if [ -f "gallery-agent-summary.json" ]; then
79+
if [ -f ".github/gallery-agent/gallery-agent-summary.json" ]; then
8080
echo "summary_exists=true" >> $GITHUB_OUTPUT
8181
# Extract summary data using jq
82-
echo "search_term=$(jq -r '.search_term' gallery-agent-summary.json)" >> $GITHUB_OUTPUT
83-
echo "total_found=$(jq -r '.total_found' gallery-agent-summary.json)" >> $GITHUB_OUTPUT
84-
echo "models_added=$(jq -r '.models_added' gallery-agent-summary.json)" >> $GITHUB_OUTPUT
85-
echo "quantization=$(jq -r '.quantization' gallery-agent-summary.json)" >> $GITHUB_OUTPUT
86-
echo "processing_time=$(jq -r '.processing_time' gallery-agent-summary.json)" >> $GITHUB_OUTPUT
82+
echo "search_term=$(jq -r '.search_term' .github/gallery-agent/gallery-agent-summary.json)" >> $GITHUB_OUTPUT
83+
echo "total_found=$(jq -r '.total_found' .github/gallery-agent/gallery-agent-summary.json)" >> $GITHUB_OUTPUT
84+
echo "models_added=$(jq -r '.models_added' .github/gallery-agent/gallery-agent-summary.json)" >> $GITHUB_OUTPUT
85+
echo "quantization=$(jq -r '.quantization' .github/gallery-agent/gallery-agent-summary.json)" >> $GITHUB_OUTPUT
86+
echo "processing_time=$(jq -r '.processing_time' .github/gallery-agent/gallery-agent-summary.json)" >> $GITHUB_OUTPUT
8787
8888
# Create a formatted list of added models with URLs
89-
added_models=$(jq -r 'range(0; .added_model_ids | length) as $i | "- [\(.added_model_ids[$i])](\(.added_model_urls[$i]))"' gallery-agent-summary.json | tr '\n' '\n')
89+
added_models=$(jq -r 'range(0; .added_model_ids | length) as $i | "- [\(.added_model_ids[$i])](\(.added_model_urls[$i]))"' .github/gallery-agent/gallery-agent-summary.json | tr '\n' '\n')
9090
echo "added_models<<EOF" >> $GITHUB_OUTPUT
9191
echo "$added_models" >> $GITHUB_OUTPUT
9292
echo "EOF" >> $GITHUB_OUTPUT
93+
rm -f .github/gallery-agent/gallery-agent-summary.json
9394
else
9495
echo "summary_exists=false" >> $GITHUB_OUTPUT
9596
fi

0 commit comments

Comments
 (0)