From 74f3acf9792e4402896cd5ed8814ca9209547a9a Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX Date: Wed, 10 Apr 2024 09:53:10 -0400 Subject: [PATCH] NuGet should target repo, not commit PRs would virtually never pass because the nuget configuration would run against the individual user --- .github/workflows/build.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/release.yml | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4cc194e..f5c13f7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ jobs: - name: Restore dependencies run: | - dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name jellyfin-pre "https://nuget.pkg.github.com/jellyfin/index.json" + dotnet nuget add source --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name jellyfin-pre "https://nuget.pkg.github.com/jellyfin/index.json" dotnet tool install --global dotnet-outdated-tool dotnet outdated -pre Always -u -inc Jellyfin diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d7e8913..c964e2d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -30,7 +30,7 @@ jobs: dotnet-version: '8.0.x' - name: Restore dependencies run: | - dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name jellyfin-pre "https://nuget.pkg.github.com/jellyfin/index.json" + dotnet nuget add source --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name jellyfin-pre "https://nuget.pkg.github.com/jellyfin/index.json" dotnet tool install --global dotnet-outdated-tool dotnet outdated -pre Always -u -inc Jellyfin diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4711ff..fa1bb09 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,10 @@ jobs: dotnet-version: 8.0.x - name: Restore dependencies - run: dotnet restore + run: | + dotnet nuget add source --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name jellyfin-pre "https://nuget.pkg.github.com/jellyfin/index.json" + dotnet tool install --global dotnet-outdated-tool + dotnet outdated -pre Always -u -inc Jellyfin - name: Embed version info run: echo "${{ github.sha }}" > ConfusedPolarBear.Plugin.IntroSkipper/Configuration/version.txt