Skip to content

Commit 262afd2

Browse files
authored
chore(gallery agent): summary now is at root of the git repository (#7463)
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 5610384 commit 262afd2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/gallery-agent.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,21 @@ jobs:
8282
id: read_summary
8383
if: steps.check_changes.outputs.changes == 'true'
8484
run: |
85-
if [ -f ".github/gallery-agent/gallery-agent-summary.json" ]; then
85+
if [ -f "./gallery-agent-summary.json" ]; then
8686
echo "summary_exists=true" >> $GITHUB_OUTPUT
8787
# Extract summary data using jq
88-
echo "search_term=$(jq -r '.search_term' .github/gallery-agent/gallery-agent-summary.json)" >> $GITHUB_OUTPUT
89-
echo "total_found=$(jq -r '.total_found' .github/gallery-agent/gallery-agent-summary.json)" >> $GITHUB_OUTPUT
90-
echo "models_added=$(jq -r '.models_added' .github/gallery-agent/gallery-agent-summary.json)" >> $GITHUB_OUTPUT
91-
echo "quantization=$(jq -r '.quantization' .github/gallery-agent/gallery-agent-summary.json)" >> $GITHUB_OUTPUT
92-
echo "processing_time=$(jq -r '.processing_time' .github/gallery-agent/gallery-agent-summary.json)" >> $GITHUB_OUTPUT
88+
echo "search_term=$(jq -r '.search_term' ./gallery-agent-summary.json)" >> $GITHUB_OUTPUT
89+
echo "total_found=$(jq -r '.total_found' ./gallery-agent-summary.json)" >> $GITHUB_OUTPUT
90+
echo "models_added=$(jq -r '.models_added' ./gallery-agent-summary.json)" >> $GITHUB_OUTPUT
91+
echo "quantization=$(jq -r '.quantization' ./gallery-agent-summary.json)" >> $GITHUB_OUTPUT
92+
echo "processing_time=$(jq -r '.processing_time' ./gallery-agent-summary.json)" >> $GITHUB_OUTPUT
9393
9494
# Create a formatted list of added models with URLs
95-
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')
95+
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')
9696
echo "added_models<<EOF" >> $GITHUB_OUTPUT
9797
echo "$added_models" >> $GITHUB_OUTPUT
9898
echo "EOF" >> $GITHUB_OUTPUT
99-
rm -f .github/gallery-agent/gallery-agent-summary.json
99+
rm -f ./gallery-agent-summary.json
100100
else
101101
echo "summary_exists=false" >> $GITHUB_OUTPUT
102102
fi

0 commit comments

Comments
 (0)