From e0f795704d59f780f64efea4442e0c65b3b36291 Mon Sep 17 00:00:00 2001 From: Scrub <72096833+ScrubN@users.noreply.github.com> Date: Mon, 17 Jun 2024 19:49:03 -0400 Subject: [PATCH] Update github actions (#1102) * Update github actions * Update github actions (again) --- .github/workflows/build-pr.yml | 40 +++++++++++++++++----------------- .github/workflows/build.yml | 32 +++++++++++++-------------- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 7f00e89a..7607c831 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -14,7 +14,7 @@ jobs: ACTIONS_ALLOW_UNSECURE_COMMANDS: true steps: - - uses: actions/checkout@v2.7.0 + - uses: actions/checkout@v4.1.7 - name: Setup .NET uses: actions/setup-dotnet@v4 with: @@ -27,7 +27,7 @@ jobs: - name: Download FFmpeg To Workspace # You may pin to the exact commit or the version. # uses: carlosperate/download-file-action@e85e0aa6262f13571d17a4a39687b26981c583dc - uses: carlosperate/download-file-action@v1.1.2 + uses: carlosperate/download-file-action@v2.0.1 with: # URL of the file to download file-url: https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip @@ -38,13 +38,13 @@ jobs: run: tar xfz ffmpeg.zip --strip-components=1; copy bin/ffmpeg.exe TwitchDownloaderWPF/bin/Release/net6.0-windows/publish/win-x64/ffmpeg.exe - name: Zip Windows GUI - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderWPF/bin/Release/net6.0-windows/publish/win-x64" dest: TwitchDownloaderGUI-Windows-x64.zip - name: Upload Windows GUI Artifact Asset - uses: actions/upload-artifact@v3.1.3 + uses: actions/upload-artifact@v4.3.3 with: name: TwitchDownloaderGUI-Windows-x64.zip path: TwitchDownloaderGUI-Windows-x64.zip @@ -53,7 +53,7 @@ jobs: runs-on: ubuntu-20.04 needs: [build-gui] steps: - - uses: actions/checkout@v2.7.0 + - uses: actions/checkout@v4.1.7 - name: Setup .NET uses: actions/setup-dotnet@v4 with: @@ -72,61 +72,61 @@ jobs: run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=LinuxArm64 -p:DebugType=Portable - name: Zip Windows CLI - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/Windows" dest: TwitchDownloaderCLI-Windows-x64.zip - name: Zip Linux CLI - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/Linux" dest: TwitchDownloaderCLI-Linux-x64.zip - name: Zip LinuxAlpine CLI - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxAlpine" dest: TwitchDownloaderCLI-LinuxAlpine-x64.zip - name: Zip LinuxArm CLI - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm" dest: TwitchDownloaderCLI-LinuxArm.zip - name: Zip LinuxArm64 CLI - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm64" dest: TwitchDownloaderCLI-LinuxArm64.zip - name: Upload Windows CLI Artifact Asset - uses: actions/upload-artifact@v3.1.3 + uses: actions/upload-artifact@v4.3.3 with: name: TwitchDownloaderCLI-Windows-x64.zip path: TwitchDownloaderCLI-Windows-x64.zip - name: Upload Linux CLI Artifact Asset - uses: actions/upload-artifact@v3.1.3 + uses: actions/upload-artifact@v4.3.3 with: name: TwitchDownloaderCLI-Linux-x64.zip path: TwitchDownloaderCLI-Linux-x64.zip - name: Upload LinuxAlpine CLI Artifact Asset - uses: actions/upload-artifact@v3.1.3 + uses: actions/upload-artifact@v4.3.3 with: name: TwitchDownloaderCLI-LinuxAlpine-x64.zip path: TwitchDownloaderCLI-LinuxAlpine-x64.zip - name: Upload LinuxArm CLI Artifact Asset - uses: actions/upload-artifact@v3.1.3 + uses: actions/upload-artifact@v4.3.3 with: name: TwitchDownloaderCLI-LinuxArm.zip path: TwitchDownloaderCLI-LinuxArm.zip - name: Upload LinuxArm64 CLI Artifact Asset - uses: actions/upload-artifact@v3.1.3 + uses: actions/upload-artifact@v4.3.3 with: name: TwitchDownloaderCLI-LinuxArm64.zip path: TwitchDownloaderCLI-LinuxArm64.zip @@ -135,7 +135,7 @@ jobs: runs-on: macos-latest needs: [build-cli] steps: - - uses: actions/checkout@v2.7.0 + - uses: actions/checkout@v4.1.7 - name: Setup .NET uses: actions/setup-dotnet@v4 with: @@ -148,25 +148,25 @@ jobs: run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=MacOSArm64 -p:DebugType=Portable - name: Zip MacOS CLI - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/MacOS" dest: TwitchDownloaderCLI-MacOS-x64.zip - name: Zip MacOSArm64 CLI - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/MacOSArm64" dest: TwitchDownloaderCLI-MacOSArm64.zip - name: Upload MacOS CLI Artifact Asset - uses: actions/upload-artifact@v3.1.3 + uses: actions/upload-artifact@v4.3.3 with: name: TwitchDownloaderCLI-MacOS-x64.zip path: TwitchDownloaderCLI-MacOS-x64.zip - name: Upload MacOSArm64 CLI Artifact Asset - uses: actions/upload-artifact@v3.1.3 + uses: actions/upload-artifact@v4.3.3 with: name: TwitchDownloaderCLI-MacOSArm64.zip path: TwitchDownloaderCLI-MacOSArm64.zip diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 66d76aa0..7fb8358d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: run: | expr "${{ steps.create_release.outputs.upload_url }}" > upload_url.txt - name: Upload URL - uses: actions/upload-artifact@v3.1.3 + uses: actions/upload-artifact@v4.3.3 with: name: upload_url path: upload_url.txt @@ -39,7 +39,7 @@ jobs: ACTIONS_ALLOW_UNSECURE_COMMANDS: true steps: - - uses: actions/checkout@v2.7.0 + - uses: actions/checkout@v4.1.7 - name: Setup .NET uses: actions/setup-dotnet@v4 with: @@ -52,7 +52,7 @@ jobs: - name: Download FFmpeg To Workspace # You may pin to the exact commit or the version. # uses: carlosperate/download-file-action@e85e0aa6262f13571d17a4a39687b26981c583dc - uses: carlosperate/download-file-action@v1.1.2 + uses: carlosperate/download-file-action@v2.0.1 with: # URL of the file to download file-url: https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip @@ -63,7 +63,7 @@ jobs: run: tar xfz ffmpeg.zip --strip-components=1; copy bin/ffmpeg.exe TwitchDownloaderWPF/bin/Release/net6.0-windows/publish/win-x64/ffmpeg.exe - name: Zip Windows GUI Release Asset - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderWPF/bin/Release/net6.0-windows/publish/win-x64" dest: TwitchDownloaderGUI-${{ github.event.inputs.release_tag }}-Windows-x64.zip @@ -75,7 +75,7 @@ jobs: - name: Read URL id: url - uses: juliangruber/read-file-action@74dc4b4435b60f96f84bcba916659c779f46ba0a + uses: juliangruber/read-file-action@1.1.7 with: path: upload_url.txt @@ -94,7 +94,7 @@ jobs: runs-on: ubuntu-20.04 needs: [create-release, build-gui] steps: - - uses: actions/checkout@v2.7.0 + - uses: actions/checkout@v4.1.7 - name: Setup .NET uses: actions/setup-dotnet@v4 with: @@ -113,31 +113,31 @@ jobs: run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=LinuxArm64 -p:DebugType=Embedded - name: Zip Windows CLI - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/Windows" dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-Windows-x64.zip - name: Zip Linux CLI - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/Linux" dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-Linux-x64.zip - name: Zip LinuxAlpine CLI - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxAlpine" dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-LinuxAlpine-x64.zip - name: Zip LinuxArm CLI - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm" dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-LinuxArm.zip - name: Zip LinuxArm64 CLI - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm64" dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-LinuxArm64.zip @@ -149,7 +149,7 @@ jobs: - name: Read URL id: url - uses: juliangruber/read-file-action@74dc4b4435b60f96f84bcba916659c779f46ba0a + uses: juliangruber/read-file-action@1.1.7 with: path: upload_url.txt @@ -207,7 +207,7 @@ jobs: runs-on: macos-latest needs: [create-release, build-cli] steps: - - uses: actions/checkout@v2.7.0 + - uses: actions/checkout@v4.1.7 - name: Setup .NET uses: actions/setup-dotnet@v4 with: @@ -220,13 +220,13 @@ jobs: run: dotnet publish TwitchDownloaderCLI -p:PublishProfile=MacOSArm64 -p:DebugType=Embedded - name: Zip MacOS CLI - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/MacOS" dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-MacOS-x64.zip - name: Zip MacOSArm64 CLI - uses: vimtor/action-zip@v1.1 + uses: vimtor/action-zip@v1.2 with: files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/MacOSArm64" dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-MacOSArm64.zip @@ -238,7 +238,7 @@ jobs: - name: Read URL id: url - uses: juliangruber/read-file-action@74dc4b4435b60f96f84bcba916659c779f46ba0a + uses: juliangruber/read-file-action@1.1.7 with: path: upload_url.txt