Skip to content

Commit 0c0c8b2

Browse files
authored
fix: Run dependabot-merge if previous steps are skipped (#128)
1 parent 2084258 commit 0c0c8b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/cicd-dotnet.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,23 +149,23 @@ jobs:
149149

150150
dependabot-merge:
151151
name: Dependabot Merge
152-
if: ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' }}
152+
if: ${{ !cancelled() && !failure() && github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' }}
153153
uses: ./.github/workflows/step-dependabot-merge.yml
154154
needs:
155155
- build
156156
secrets: inherit
157157

158158
publish-nuget:
159159
name: Publish NuGet
160-
if: ${{ inputs.disablePublish == false && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
160+
if: ${{ !cancelled() && !failure() && inputs.disablePublish == false && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
161161
uses: ./.github/workflows/step-dotnet-publish-nuget.yml
162162
needs:
163163
- build
164164
secrets: inherit
165165

166166
release:
167167
name: Release
168-
if: ${{ inputs.disablePublish == false && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
168+
if: ${{ !cancelled() && !failure() && inputs.disablePublish == false && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
169169
needs:
170170
- version
171171
- build

0 commit comments

Comments
 (0)