Skip to content

Commit fca7da3

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

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/dotnet.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,10 @@ jobs:
2323
run: dotnet restore
2424

2525
- 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
26+
env:
27+
NUGET_TOKEN_EXISTS: ${{ secrets.SECRET_TOKEN }}
28+
if: env.NUGET_TOKEN_EXISTS != ''
29+
run: echo "NUGET_TOKEN_EXISTS exists - implementation of secret checking working on all runners"
3330
- name: Build
3431
run: dotnet build --configuration Release --no-restore
3532
- name: Test

0 commit comments

Comments
 (0)