Skip to content

ci(screenshots): open PR for baseline updates instead of direct push#352

Merged
rygel merged 2 commits intodevelopfrom
fix/screenshot-baseline-pr-update
Mar 19, 2026
Merged

ci(screenshots): open PR for baseline updates instead of direct push#352
rygel merged 2 commits intodevelopfrom
fix/screenshot-baseline-pr-update

Conversation

@rygel
Copy link
Copy Markdown
Owner

@rygel rygel commented Mar 19, 2026

Summary

develop is a protected branch — direct pushes from github-actions[bot] are rejected with GH006. Switches the push/dispatch path to:

  1. Commit updated baselines to a temporary chore/update-screenshot-baselines-<run-id> branch
  2. Open a PR targeting the branch that triggered the workflow
  3. The PR's screenshot comparison check passes automatically (both baseline and candidate rendered on the same windows-2025 runner), so it just needs a quick merge

The PR regression gate (pull_request events) is unchanged.

After merging

Run the workflow manually on develop via:

gh api repos/rygel/AIUsageTracker/actions/workflows/slim-screenshot-baseline.yml/dispatches -f ref=develop

It will open a baseline-update PR. Merge that PR and the screenshot checks on future PRs will pass cleanly.

🤖 Generated with Claude Code

develop is a protected branch — direct pushes from github-actions[bot]
are rejected. Switch the push/dispatch path to commit baselines to a
temporary branch and open a PR targeting the triggering branch.

The PR's screenshot comparison check passes automatically (same
windows-2025 runner for both baseline and candidate), so it just needs
a quick merge.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

Build Performance Report

⏱️ Build Time: 12 minutes

📊 Comparison with main branch:

  • Baseline (avg): 10 minutes
  • Current: 12 minutes
  • Change: 📈 20%

✅ Within acceptable range


This is an automated performance check

Comment thread .github/workflows/slim-screenshot-baseline.yml Fixed
Two issues flagged by the code scanning diff check on PR #352:

  artipacked: persist-credentials: true is required for the push step
  that creates the baseline-update branch. Added zizmor ignore comment
  to document the intentional choice.

  template-injection: ${{ github.ref_name }} was expanded directly in a
  PowerShell run block. Moved all context values (ref_name, run_id,
  server_url/repository) to named env: variables so the shell script
  reads them via $env:VAR — no inline template expansion in run steps.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

Build Performance Report

⏱️ Build Time: 12 minutes

📊 Comparison with main branch:

  • Baseline (avg): 10 minutes
  • Current: 12 minutes
  • Change: 📈 20%

✅ Within acceptable range


This is an automated performance check

@rygel rygel merged commit 8ec4e69 into develop Mar 19, 2026
6 of 7 checks passed
@rygel rygel deleted the fix/screenshot-baseline-pr-update branch March 19, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants