From 7f1df53bd702f7542e224b13918f727f9d13b25f Mon Sep 17 00:00:00 2001 From: Adriano dos Santos Fernandes Date: Thu, 19 Feb 2026 08:24:20 -0300 Subject: [PATCH] Fix #29 - CI workflow runs are failing on forks --- .github/workflows/main.yml | 12 ++++++------ .github/workflows/pull-request.yml | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1ae87d1..d874394 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,8 +39,8 @@ jobs: env: USERNAME: asfernandes VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg - FEED_URL: https://nuget.pkg.github.com/asfernandes/index.json - VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite" + FEED_URL: ${{ github.repository == 'asfernandes/fb-cpp' && 'https://nuget.pkg.github.com/asfernandes/index.json' || '' }} + VCPKG_BINARY_SOURCES: ${{ github.repository == 'asfernandes/fb-cpp' && 'clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite' || '' }} steps: - name: Checkout repository uses: actions/checkout@v4 @@ -143,8 +143,8 @@ jobs: env: USERNAME: asfernandes VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg - FEED_URL: https://nuget.pkg.github.com/asfernandes/index.json - VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite" + FEED_URL: ${{ github.repository == 'asfernandes/fb-cpp' && 'https://nuget.pkg.github.com/asfernandes/index.json' || '' }} + VCPKG_BINARY_SOURCES: ${{ github.repository == 'asfernandes/fb-cpp' && 'clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite' || '' }} steps: - name: Checkout repository uses: actions/checkout@v4 @@ -233,8 +233,8 @@ jobs: env: USERNAME: asfernandes VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg - FEED_URL: https://nuget.pkg.github.com/asfernandes/index.json - VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite" + FEED_URL: ${{ github.repository == 'asfernandes/fb-cpp' && 'https://nuget.pkg.github.com/asfernandes/index.json' || '' }} + VCPKG_BINARY_SOURCES: ${{ github.repository == 'asfernandes/fb-cpp' && 'clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite' || '' }} steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index b7ba38b..e13c802 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -33,8 +33,8 @@ jobs: env: USERNAME: asfernandes VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg - FEED_URL: https://nuget.pkg.github.com/asfernandes/index.json - VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite" + FEED_URL: ${{ github.repository == 'asfernandes/fb-cpp' && 'https://nuget.pkg.github.com/asfernandes/index.json' || '' }} + VCPKG_BINARY_SOURCES: ${{ github.repository == 'asfernandes/fb-cpp' && 'clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite' || '' }} steps: - name: Checkout repository uses: actions/checkout@v4 @@ -120,8 +120,8 @@ jobs: env: USERNAME: asfernandes VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg - FEED_URL: https://nuget.pkg.github.com/asfernandes/index.json - VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite" + FEED_URL: ${{ github.repository == 'asfernandes/fb-cpp' && 'https://nuget.pkg.github.com/asfernandes/index.json' || '' }} + VCPKG_BINARY_SOURCES: ${{ github.repository == 'asfernandes/fb-cpp' && 'clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite' || '' }} steps: - name: Checkout repository uses: actions/checkout@v4 @@ -200,8 +200,8 @@ jobs: env: USERNAME: asfernandes VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg - FEED_URL: https://nuget.pkg.github.com/asfernandes/index.json - VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite" + FEED_URL: ${{ github.repository == 'asfernandes/fb-cpp' && 'https://nuget.pkg.github.com/asfernandes/index.json' || '' }} + VCPKG_BINARY_SOURCES: ${{ github.repository == 'asfernandes/fb-cpp' && 'clear;nuget,https://nuget.pkg.github.com/asfernandes/index.json,readwrite' || '' }} steps: - name: Checkout repository uses: actions/checkout@v4