Skip to content

Commit 07e361d

Browse files
committed
chore: add a temp main branch for testing
1 parent 915dd28 commit 07e361d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ jobs:
7272
- uses: actions/checkout@v5
7373
with:
7474
fetch-depth: 0
75+
- name: Setup Git for Semantic Release Testing
76+
run: |
77+
# Setup a temp branch to test
78+
git checkout -B temp-main-branch
79+
git merge ${{ github.event.pull_request.head.sha }} --no-edit
80+
git config user.name "GitHub Actions"
81+
git config user.email "actions@github.com"
7582
- name: Test Semantic Release (No-op)
7683
id: test-release
7784
uses: python-semantic-release/python-semantic-release@v10.4.1

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ build-backend = "hatchling.build"
6868

6969
[tool.semantic_release]
7070
branch = "main"
71+
branches = ["main", "temp-main-branch"]
7172
version_toml = ["pyproject.toml:project.version"]
7273
build_command = """
7374
uv lock --upgrade-package "$PACKAGE_NAME"

0 commit comments

Comments
 (0)