We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91e7c36 commit fca7da3Copy full SHA for fca7da3
.github/workflows/dotnet.yml
@@ -23,13 +23,10 @@ jobs:
23
run: dotnet restore
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
+ env:
+ NUGET_TOKEN_EXISTS: ${{ secrets.SECRET_TOKEN }}
+ if: env.NUGET_TOKEN_EXISTS != ''
+ run: echo "NUGET_TOKEN_EXISTS exists - implementation of secret checking working on all runners"
33
- name: Build
34
run: dotnet build --configuration Release --no-restore
35
- name: Test
0 commit comments