From c6c478f52b2a4884ecab124e9ecd683268fd5395 Mon Sep 17 00:00:00 2001 From: Yaohui Liu Date: Wed, 25 Oct 2023 00:52:38 +0800 Subject: [PATCH 1/4] ci: try to fix error of pushing package. --- .github/workflows/release-minor-trigger.yml | 3 +-- .github/workflows/release-minor.yml | 3 ++- .github/workflows/release-patch-trigger.yml | 3 +-- .github/workflows/release-patch.yml | 3 ++- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-minor-trigger.yml b/.github/workflows/release-minor-trigger.yml index 6d4de7be5..6a8bbe3b6 100644 --- a/.github/workflows/release-minor-trigger.yml +++ b/.github/workflows/release-minor-trigger.yml @@ -7,7 +7,7 @@ on: types: [ closed ] jobs: - trigger_minor_release: + release-minor-trigger: if: contains(github.event.pull_request.labels.*.name, 'minor-release') && !contains(github.event.pull_request.labels.*.name, 'patch-release') runs-on: ubuntu-latest @@ -17,4 +17,3 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: 6.0.x - \ No newline at end of file diff --git a/.github/workflows/release-minor.yml b/.github/workflows/release-minor.yml index 11693ac8e..5d1e4e493 100644 --- a/.github/workflows/release-minor.yml +++ b/.github/workflows/release-minor.yml @@ -1,4 +1,4 @@ -name: auto-release +name: auto-minor-release on: workflow_run: @@ -11,6 +11,7 @@ env: jobs: minor_release_to_nuget: + needs: release-minor-trigger runs-on: ubuntu-latest steps: diff --git a/.github/workflows/release-patch-trigger.yml b/.github/workflows/release-patch-trigger.yml index 41ec4f840..bcf2ceefe 100644 --- a/.github/workflows/release-patch-trigger.yml +++ b/.github/workflows/release-patch-trigger.yml @@ -7,7 +7,7 @@ on: types: [ closed ] jobs: - trigger_patch_release: + release-patch-trigger: if: contains(github.event.pull_request.labels.*.name, 'patch-release') && !contains(github.event.pull_request.labels.*.name, 'minor-release') runs-on: ubuntu-latest @@ -17,4 +17,3 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: 6.0.x - \ No newline at end of file diff --git a/.github/workflows/release-patch.yml b/.github/workflows/release-patch.yml index 39121b967..cb824ddd9 100644 --- a/.github/workflows/release-patch.yml +++ b/.github/workflows/release-patch.yml @@ -1,4 +1,4 @@ -name: auto-release +name: auto-patch-release on: workflow_run: @@ -11,6 +11,7 @@ env: jobs: patch_release_to_nuget: + needs: release-patch-trigger runs-on: ubuntu-latest steps: From 0f6408f60a4224eb7f612a6f9058d532d1596c26 Mon Sep 17 00:00:00 2001 From: Yaohui Liu Date: Wed, 25 Oct 2023 00:58:20 +0800 Subject: [PATCH 2/4] ci: try to fix error of pushing package. --- .github/workflows/release-minor.yml | 2 +- .github/workflows/release-patch.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-minor.yml b/.github/workflows/release-minor.yml index 5d1e4e493..5b0dd0e48 100644 --- a/.github/workflows/release-minor.yml +++ b/.github/workflows/release-minor.yml @@ -11,7 +11,7 @@ env: jobs: minor_release_to_nuget: - needs: release-minor-trigger + if: ${{ github.event.workflow_run.conclusion == 'success' && needs.release-minor-trigger.outputs.workflow_run_id }} runs-on: ubuntu-latest steps: diff --git a/.github/workflows/release-patch.yml b/.github/workflows/release-patch.yml index cb824ddd9..ec5f82ad4 100644 --- a/.github/workflows/release-patch.yml +++ b/.github/workflows/release-patch.yml @@ -11,7 +11,7 @@ env: jobs: patch_release_to_nuget: - needs: release-patch-trigger + if: ${{ github.event.workflow_run.conclusion == 'success' && needs.release-patch-trigger.outputs.workflow_run_id }} runs-on: ubuntu-latest steps: From 27b21cf136c5a35aaeac6122e486c3f4154f5e9c Mon Sep 17 00:00:00 2001 From: Yaohui Liu Date: Wed, 25 Oct 2023 01:03:04 +0800 Subject: [PATCH 3/4] ci: try to fix error of pushing package. --- .github/workflows/release-minor.yml | 2 +- .github/workflows/release-patch.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-minor.yml b/.github/workflows/release-minor.yml index 5b0dd0e48..13fec332a 100644 --- a/.github/workflows/release-minor.yml +++ b/.github/workflows/release-minor.yml @@ -11,7 +11,7 @@ env: jobs: minor_release_to_nuget: - if: ${{ github.event.workflow_run.conclusion == 'success' && needs.release-minor-trigger.outputs.workflow_run_id }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest steps: diff --git a/.github/workflows/release-patch.yml b/.github/workflows/release-patch.yml index ec5f82ad4..b1bbe8cff 100644 --- a/.github/workflows/release-patch.yml +++ b/.github/workflows/release-patch.yml @@ -11,7 +11,7 @@ env: jobs: patch_release_to_nuget: - if: ${{ github.event.workflow_run.conclusion == 'success' && needs.release-patch-trigger.outputs.workflow_run_id }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest steps: From 4b86bc8d9d75d57f4d78d28f4928e734aa2fe78f Mon Sep 17 00:00:00 2001 From: Yaohui Liu Date: Wed, 25 Oct 2023 01:07:55 +0800 Subject: [PATCH 4/4] ci: try to fix error of pushing package. --- .github/workflows/release-minor.yml | 1 + .github/workflows/release-patch.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/release-minor.yml b/.github/workflows/release-minor.yml index 13fec332a..e54e889e8 100644 --- a/.github/workflows/release-minor.yml +++ b/.github/workflows/release-minor.yml @@ -15,6 +15,7 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 - name: Setup NuGet uses: nuget/setup-nuget@v1 with: diff --git a/.github/workflows/release-patch.yml b/.github/workflows/release-patch.yml index b1bbe8cff..1a59ac9cc 100644 --- a/.github/workflows/release-patch.yml +++ b/.github/workflows/release-patch.yml @@ -15,6 +15,7 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 - name: Setup NuGet uses: nuget/setup-nuget@v1 with: