Skip to content

Commit 5ee0aac

Browse files
authored
Docker tag monitor pat trigger test (#1313)
1 parent e136d70 commit 5ee0aac

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/docker-tag-monitor.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,11 @@ jobs:
159159
echo ""
160160
echo "1. Update image tags in \`.github/configs/nvidia-master.yaml\` and/or \`.github/configs/amd-master.yaml\`"
161161
echo "2. Add entries to \`perf-changelog.yaml\` documenting the version changes"
162-
echo "3. Create a PR with these changes"
162+
echo "3. Create separate PRs grouped by framework and image family, and link each PR."
163163
echo ""
164-
echo "Focus on updating single-node configurations. For each framework, check if there are multiple CUDA/ROCm versions available and choose appropriately based on current usage patterns in the configs."
164+
echo "Group by framework plus CUDA/ROCm image family (for example sglang-cuda, sglang-rocm, vllm-cuda, vllm-rocm, atom, trt), not by individual GPU. Split by GPU only when an update is genuinely hardware-specific."
165+
echo ""
166+
echo "Focus on updating single-node configurations. For each framework/image family, check if there are multiple CUDA/ROCm versions available and choose appropriately based on current usage patterns in the configs."
165167
} > "$BODY_FILE"
166168
167169
echo "body_file=$BODY_FILE" >> "$GITHUB_OUTPUT"
@@ -172,21 +174,22 @@ jobs:
172174
- name: Create issue for updates
173175
if: steps.check.outputs.has_updates == 'true' && inputs.dry_run != true
174176
env:
175-
GH_TOKEN: ${{ github.token }}
177+
GH_TOKEN: ${{ secrets.CLAUDE_PAT }}
176178
run: |
177179
DATE=$(date +%Y-%m-%d)
178180
BODY_FILE="${{ steps.check.outputs.body_file }}"
179181
180182
EXISTING=$(gh issue list --repo "$GITHUB_REPOSITORY" --label "docker-update" --state open --json number --jq '.[0].number // empty')
181183
if [[ -n "$EXISTING" ]]; then
182184
echo "Updating existing issue #$EXISTING"
183-
gh issue comment "$EXISTING" --repo "$GITHUB_REPOSITORY" --body-file "$BODY_FILE"
185+
jq -Rs '{body: .}' "$BODY_FILE" \
186+
| gh api --method POST "repos/$GITHUB_REPOSITORY/issues/$EXISTING/comments" --input -
184187
else
185-
gh issue create \
186-
--repo "$GITHUB_REPOSITORY" \
187-
--title "[Auto] Docker Image Updates Available - $DATE" \
188-
--label "docker-update,claude-task" \
189-
--body-file "$BODY_FILE"
188+
jq -n \
189+
--arg title "[Auto] Docker Image Updates Available - $DATE" \
190+
--rawfile body "$BODY_FILE" \
191+
'{title: $title, body: $body, labels: ["docker-update", "claude-task"]}' \
192+
| gh api --method POST "repos/$GITHUB_REPOSITORY/issues" --input -
190193
fi
191194
192195
- name: Dry run output

0 commit comments

Comments
 (0)