Skip to content

Commit b6f27f4

Browse files
authored
Fix asfernandes#29 - CI workflow runs are failing on forks (asfernandes#30)
1 parent 2469207 commit b6f27f4

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
env:
4040
USERNAME: asfernandes
4141
VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg
42-
FEED_URL: https://nuget.pkg.github.com/asfernandes/index.json
43-
VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite"
42+
FEED_URL: ${{ github.repository == 'asfernandes/fb-cpp' && 'https://nuget.pkg.github.com/asfernandes/index.json' || '' }}
43+
VCPKG_BINARY_SOURCES: ${{ github.repository == 'asfernandes/fb-cpp' && 'clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite' || '' }}
4444
steps:
4545
- name: Checkout repository
4646
uses: actions/checkout@v4
@@ -143,8 +143,8 @@ jobs:
143143
env:
144144
USERNAME: asfernandes
145145
VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg
146-
FEED_URL: https://nuget.pkg.github.com/asfernandes/index.json
147-
VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite"
146+
FEED_URL: ${{ github.repository == 'asfernandes/fb-cpp' && 'https://nuget.pkg.github.com/asfernandes/index.json' || '' }}
147+
VCPKG_BINARY_SOURCES: ${{ github.repository == 'asfernandes/fb-cpp' && 'clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite' || '' }}
148148
steps:
149149
- name: Checkout repository
150150
uses: actions/checkout@v4
@@ -233,8 +233,8 @@ jobs:
233233
env:
234234
USERNAME: asfernandes
235235
VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg
236-
FEED_URL: https://nuget.pkg.github.com/asfernandes/index.json
237-
VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite"
236+
FEED_URL: ${{ github.repository == 'asfernandes/fb-cpp' && 'https://nuget.pkg.github.com/asfernandes/index.json' || '' }}
237+
VCPKG_BINARY_SOURCES: ${{ github.repository == 'asfernandes/fb-cpp' && 'clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite' || '' }}
238238
steps:
239239
- name: Checkout repository
240240
uses: actions/checkout@v4

.github/workflows/pull-request.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
env:
3434
USERNAME: asfernandes
3535
VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg
36-
FEED_URL: https://nuget.pkg.github.com/asfernandes/index.json
37-
VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite"
36+
FEED_URL: ${{ github.repository == 'asfernandes/fb-cpp' && 'https://nuget.pkg.github.com/asfernandes/index.json' || '' }}
37+
VCPKG_BINARY_SOURCES: ${{ github.repository == 'asfernandes/fb-cpp' && 'clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite' || '' }}
3838
steps:
3939
- name: Checkout repository
4040
uses: actions/checkout@v4
@@ -120,8 +120,8 @@ jobs:
120120
env:
121121
USERNAME: asfernandes
122122
VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg
123-
FEED_URL: https://nuget.pkg.github.com/asfernandes/index.json
124-
VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite"
123+
FEED_URL: ${{ github.repository == 'asfernandes/fb-cpp' && 'https://nuget.pkg.github.com/asfernandes/index.json' || '' }}
124+
VCPKG_BINARY_SOURCES: ${{ github.repository == 'asfernandes/fb-cpp' && 'clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite' || '' }}
125125
steps:
126126
- name: Checkout repository
127127
uses: actions/checkout@v4
@@ -200,8 +200,8 @@ jobs:
200200
env:
201201
USERNAME: asfernandes
202202
VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg
203-
FEED_URL: https://nuget.pkg.github.com/asfernandes/index.json
204-
VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite"
203+
FEED_URL: ${{ github.repository == 'asfernandes/fb-cpp' && 'https://nuget.pkg.github.com/asfernandes/index.json' || '' }}
204+
VCPKG_BINARY_SOURCES: ${{ github.repository == 'asfernandes/fb-cpp' && 'clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite' || '' }}
205205
steps:
206206
- name: Checkout repository
207207
uses: actions/checkout@v4

0 commit comments

Comments
 (0)