Skip to content

Commit 43c7b64

Browse files
committed
ci: 升级 GitHub Actions 版本
- actions/checkout v4 → v6 - orhun/git-cliff-action v3 → v4 - 添加 GITHUB_REPO 环境变量避免 API 限流
1 parent 443b3ba commit 43c7b64

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/publish-nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818

1919
- name: Setup .NET
2020
uses: actions/setup-dotnet@v4

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
if: "!startsWith(github.event.head_commit.message, 'chore(release)')"
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1717
with:
1818
fetch-depth: 0
1919
token: ${{ secrets.GITHUB_TOKEN }}
@@ -57,12 +57,14 @@ jobs:
5757
5858
- name: Generate CHANGELOG
5959
if: steps.check.outputs.need_release == 'true'
60-
uses: orhun/git-cliff-action@v3
60+
uses: orhun/git-cliff-action@v4
61+
id: git-cliff
6162
with:
6263
config: cliff.toml
6364
args: --tag ${{ steps.version.outputs.version }} --strip header
6465
env:
6566
OUTPUT: CHANGELOG.md
67+
GITHUB_REPO: ${{ github.repository }}
6668

6769
- name: Commit changes
6870
if: steps.check.outputs.need_release == 'true'

0 commit comments

Comments
 (0)