Skip to content

Commit 91e7c36

Browse files
authored
Update dotnet.yml
1 parent a36db81 commit 91e7c36

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/dotnet.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,15 @@ jobs:
2121
dotnet-version: 6.0.x
2222
- name: Restore dependencies
2323
run: dotnet restore
24-
- if: ${{ secrets.NUGET_TEST_TOKEN != '' }}
25-
run: echo 'This step will only run if the secret has a value set.'
24+
25+
- name: Fiddeling with secrets
26+
run: |
27+
if [[ "${{ secrets.NUGET_TOKEN }}" != "" ]];
28+
then
29+
echo 'This step will only run if the secret has a value set.'
30+
else
31+
echo 'This step will only run if the secret is missing.'
32+
fi
2633
- name: Build
2734
run: dotnet build --configuration Release --no-restore
2835
- name: Test

0 commit comments

Comments
 (0)