Skip to content

build: adjust actions checkout ref parameter on release#1669

Merged
bdraco merged 1 commit into
python-zeroconf:masterfrom
eshattow:release-create-local-branch
May 15, 2026
Merged

build: adjust actions checkout ref parameter on release#1669
bdraco merged 1 commit into
python-zeroconf:masterfrom
eshattow:release-create-local-branch

Conversation

@eshattow
Copy link
Copy Markdown
Contributor

@eshattow eshattow commented May 3, 2026

Let's use github.ref "ref:" parameter on release and create a local branch name.

Resolves: #1668

Let's use github.ref "ref:" parameter on release and create a local branch name.
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 3, 2026

Merging this PR will not alter performance

✅ 6 untouched benchmarks


Comparing eshattow:release-create-local-branch (fd33043) with master (0e94c25)

Open in CodSpeed

@codecov
Copy link
Copy Markdown

codecov Bot commented May 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.76%. Comparing base (0e94c25) to head (fd33043).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1669   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files          33       33           
  Lines        3401     3401           
  Branches      461      461           
=======================================
  Hits         3393     3393           
  Misses          5        5           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the checkout action's ref parameter in the release-test job to use github.ref (full ref like refs/heads/main or refs/tags/...) instead of github.head_ref || github.ref_name, then recreates a local branch with the short name via git switch -C. This addresses an upstream issue where Python Semantic Release dry-run needs a proper local branch context.

Changes:

  • Use github.ref for the checkout ref to ensure the exact ref is fetched.
  • Add a follow-up step to create/reset a local branch with the head_ref or ref_name.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bdraco bdraco merged commit bc8ec8d into python-zeroconf:master May 15, 2026
46 checks passed
@eshattow eshattow deleted the release-create-local-branch branch May 16, 2026 04:09
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.

Workflow of python-zeroconf not valid for accepting external Pull Request contributions

3 participants