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..e54e889e8 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,9 +11,11 @@ env: jobs: minor_release_to_nuget: + if: ${{ github.event.workflow_run.conclusion == 'success' }} 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-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..1a59ac9cc 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,9 +11,11 @@ env: jobs: patch_release_to_nuget: + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 - name: Setup NuGet uses: nuget/setup-nuget@v1 with: