Skip to content

Commit feb9f83

Browse files
committed
Update nuget-push-to-esdm-nexus.yml
1 parent def4034 commit feb9f83

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/nuget-push-to-esdm-nexus.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jobs:
1212
uses: actions/setup-dotnet@v4
1313
with:
1414
dotnet-version: 8.0.x
15+
- name: Exit if the branch is not master
16+
run: |
17+
if [[ "${{ github.ref }}" != "refs/heads/master" ]]; then
18+
echo "Branch is not master, exiting."
19+
exit 0
20+
fi
1521
- name: Setup NuGet
1622
run: dotnet nuget add source ${{ secrets.NUGET_SOURCE_URL }} -u ${{ secrets.NUGET_USERNAME }} -p ${{ secrets.NUGET_PASSWORD }} --store-password-in-clear-text --name esdm-nexus
1723
- name: Restore dependencies

0 commit comments

Comments
 (0)