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