From f45cf18bf8dd5ab70a625c6c660d36d08e8a4bf4 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 24 Oct 2024 10:27:22 +0200 Subject: [PATCH 1/2] ci: update Actions to newer versions The v2 version of `upload-artifact`/`download-artifact` is no longer supported and stopped working. Let's update to v4, which _does_ work. Signed-off-by: Johannes Schindelin --- .github/workflows/build.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a30be0879..97859a15f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -42,25 +42,25 @@ jobs: run: src\scripts\CreateBuildArtifacts.bat ${{ matrix.configuration }} artifacts - name: Upload functional tests drop - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: FunctionalTests_${{ matrix.configuration }} path: artifacts\GVFS.FunctionalTests - name: Upload FastFetch drop - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: FastFetch_${{ matrix.configuration }} path: artifacts\FastFetch - name: Upload installers - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Installers_${{ matrix.configuration }} path: artifacts\GVFS.Installers - name: Upload NuGet packages - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: NuGetPackages_${{ matrix.configuration }} path: artifacts\NuGetPackages @@ -76,13 +76,13 @@ jobs: steps: - name: Download installers - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: Installers_${{ matrix.configuration }} path: install - name: Download functional tests drop - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: FunctionalTests_${{ matrix.configuration }} path: ft @@ -101,7 +101,7 @@ jobs: - name: Upload installation logs if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: InstallationLogs_${{ matrix.configuration }} path: install\logs @@ -115,14 +115,14 @@ jobs: - name: Upload functional test results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: FunctionalTests_Results_${{ matrix.configuration }} path: TestResult.xml - name: Upload Git trace2 output if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: GitTrace2_${{ matrix.configuration }} path: C:\temp\git-trace2.log From 1cefe5086c9b49eb5d54bcc8930dba622e7ae2a6 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 24 Oct 2024 10:30:56 +0200 Subject: [PATCH 2/2] ci: ask Dependabot to take care of updating GitHub Actions Every once in a while, the GitHub Actions we use (such as `checkout`, `upload-artifact`, etc) require updates as the old versions stop working. Let's ask Dependabot to take care of this tedious task. Signed-off-by: Johannes Schindelin --- .github/dependabot.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..22d537640 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file +# especially +# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot#enabling-dependabot-version-updates-for-actions + +version: 2 +updates: + - package-ecosystem: "github-actions" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly"