Skip to content

Commit c215fa7

Browse files
committed
Only pushing to feed on master branch
1 parent e7152f2 commit c215fa7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- master
77
pull_request:
8+
env:
9+
DOTNET_NOLOGO: true
10+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
11+
MINVERBUILDMETADATA: build.${{ github.run_id }}.${{ github.run_attempt}}
812
permissions:
913
contents: read
1014
concurrency:
@@ -17,7 +21,7 @@ jobs:
1721
runs-on: windows-latest
1822
steps:
1923
- name: Checkout
20-
uses: actions/checkout@v4
24+
uses: actions/checkout@v4.2.0
2125
with:
2226
fetch-depth: 0
2327
- name: Setup dotnet
@@ -42,7 +46,7 @@ jobs:
4246
runs-on: ubuntu-latest
4347
steps:
4448
- name: Checkout
45-
uses: actions/checkout@v4
49+
uses: actions/checkout@v4.2.0
4650
with:
4751
fetch-depth: 0
4852
- name: Setup dotnet
@@ -55,6 +59,7 @@ jobs:
5559
run: ./Build.ps1
5660
shell: pwsh
5761
- name: Push to MyGet
62+
if: github.ref == 'refs/heads/master'
5863
env:
5964
NUGET_URL: https://f.feedz.io/lucky-penny-software/automapper/nuget/index.json
6065
NUGET_API_KEY: ${{ secrets.FEEDZIO_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)