Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4569c40

Browse files
committed
fix(changelog): creating local branch
1 parent8e8fe18 commit4569c40

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

‎.github/workflows/changelog.yml‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@ jobs:
3636
git config user.name "github-actions[bot]"
3737
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
3838
39-
# Fetch the main branch to ensure local ref is up-to-date
40-
git fetch origin main
39+
# Fetch the latest main branch from origin
40+
# Use refs/heads/main to be explicit about fetching the branch, not a tag named main
41+
git fetch origin refs/heads/main
4142
42-
#Checkout mainbranch
43-
git checkout main
43+
#Create a newbranch based on the fetched origin/main
44+
git checkout-b changelog-update origin/main
4445
45-
# Add, commit, and pushthe changelog tomain
46+
# Add, committhe changelog tothe new branch
4647
git add ./CHANGELOG.md
47-
# Use --allow-empty in case the changelog hasn't changed (e.g., rerunning on same tag)
4848
git commit --allow-empty -m "chore(docs): update CHANGELOG for latest tag [skip ci]"
49-
git push origin main
49+
50+
# Push the new local branch to the remote main branch
51+
git push origin changelog-update:main

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp