Skip to content

Commit 1299de3

Browse files
authored
Merge pull request #216 from AsakusaRinne/auto_release_ci
ci: try to fix error of pushing package.
2 parents f62afad + 4b86bc8 commit 1299de3

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.github/workflows/release-minor-trigger.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
types: [ closed ]
88

99
jobs:
10-
trigger_minor_release:
10+
release-minor-trigger:
1111
if: contains(github.event.pull_request.labels.*.name, 'minor-release') && !contains(github.event.pull_request.labels.*.name, 'patch-release')
1212
runs-on: ubuntu-latest
1313

@@ -17,4 +17,3 @@ jobs:
1717
uses: actions/setup-dotnet@v3
1818
with:
1919
dotnet-version: 6.0.x
20-

.github/workflows/release-minor.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: auto-release
1+
name: auto-minor-release
22

33
on:
44
workflow_run:
@@ -11,9 +11,11 @@ env:
1111

1212
jobs:
1313
minor_release_to_nuget:
14+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1415
runs-on: ubuntu-latest
1516

1617
steps:
18+
- uses: actions/checkout@v3
1719
- name: Setup NuGet
1820
uses: nuget/setup-nuget@v1
1921
with:

.github/workflows/release-patch-trigger.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
types: [ closed ]
88

99
jobs:
10-
trigger_patch_release:
10+
release-patch-trigger:
1111
if: contains(github.event.pull_request.labels.*.name, 'patch-release') && !contains(github.event.pull_request.labels.*.name, 'minor-release')
1212
runs-on: ubuntu-latest
1313

@@ -17,4 +17,3 @@ jobs:
1717
uses: actions/setup-dotnet@v3
1818
with:
1919
dotnet-version: 6.0.x
20-

.github/workflows/release-patch.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: auto-release
1+
name: auto-patch-release
22

33
on:
44
workflow_run:
@@ -11,9 +11,11 @@ env:
1111

1212
jobs:
1313
patch_release_to_nuget:
14+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1415
runs-on: ubuntu-latest
1516

1617
steps:
18+
- uses: actions/checkout@v3
1719
- name: Setup NuGet
1820
uses: nuget/setup-nuget@v1
1921
with:

0 commit comments

Comments
 (0)