Skip to content

Commit 90b145e

Browse files
committed
Move conditions back to steps
1 parent 45b241a commit 90b145e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/master.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ jobs:
7171
fail-fast: true
7272
matrix:
7373
dotnet: ['5.0.x']
74-
env:
75-
PUSH_TO_FEEDZ: github.event_name == 'pull_request' || (github.event_name == 'repository_dispatch' && github.event.client_payload.feedz == true) || (github.event_name == 'workflow_dispatch' && github.event.inputs.deployToFeedz == 'true')
76-
PUSH_TO_NUGET: github.event_name == 'push' || (github.event_name == 'repository_dispatch' && github.event.client_payload.nuget == true) || (github.event_name == 'workflow_dispatch' && github.event.inputs.deployToNuget == 'true')
7774

7875
steps:
7976
- uses: actions/checkout@v1
@@ -94,8 +91,8 @@ jobs:
9491

9592
- name: Push to feedz.io
9693
run: dotnet nuget push **/*.nupkg -k ${{ secrets.FEEDZ_API_KEY }} -s ${{ env.FEEDZ_URI }}
97-
if: env.PUSH_TO_FEEDZ
94+
if: github.event_name == 'pull_request' || (github.event_name == 'repository_dispatch' && github.event.client_payload.feedz == true) || (github.event_name == 'workflow_dispatch' && github.event.inputs.deployToFeedz == 'true')
9895

9996
- name: Push to NuGet.org
10097
run: dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
101-
if: env.PUSH_TO_NUGET
98+
if: github.event_name == 'push' || (github.event_name == 'repository_dispatch' && github.event.client_payload.nuget == true) || (github.event_name == 'workflow_dispatch' && github.event.inputs.deployToNuget == 'true')

0 commit comments

Comments
 (0)