Skip to content

Commit c48a3fc

Browse files
author
Petr Sramek
committed
push push
1 parent c0963aa commit c48a3fc

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,28 @@ jobs:
4545
run-number: ${{ needs.global-variables.outputs.github-run-number }}
4646

4747
validate:
48-
if: ${{ needs.global-variables.outputs.is-release == 'true' }}
4948
name: 'Validate'
5049
needs: [global-variables, build]
5150
runs-on: ubuntu-latest
5251

5352
steps:
54-
- name: 'Checkout ${{ github.head_ref || github.ref }}'
53+
- if: ${{ needs.global-variables.outputs.is-release == 'true' }}
54+
name: 'Checkout ${{ github.head_ref || github.ref }}'
5555
uses: actions/checkout@v4
5656

57-
- name: 'Setup .NET'
57+
- if: ${{ needs.global-variables.outputs.is-release == 'true' }}
58+
name: 'Setup .NET'
5859
uses: actions/setup-dotnet@v4
5960
with:
6061
dotnet-version: ${{ env.dotnet-sdk-version }}
6162

62-
- name: 'Validate warnings with .NET CLI'
63+
- if: ${{ needs.global-variables.outputs.is-release == 'true' }}
64+
name: 'Validate warnings with .NET CLI'
6365
shell: bash
6466
run: dotnet format analyzers --severity warn --verify-no-changes
6567

68+
- run: exit 0
69+
6670
publish-package:
6771
name: 'Publish'
6872
uses: ./.github/workflows/publish-nuget-package.yml

0 commit comments

Comments
 (0)