git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] ci: use actions/{upload,download}-artifact@v3

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 6, 2022, 08:24 UTC
Message-ID
<xmqq1qpd9bys.fsf@gitster.g>
In-Reply-To
<pull.1354.v2.git.git.1670234474721.gitgitgadget@gmail.com>

GitHub CI jobs stopped complaining about use of deprecated actions that requires deprecated Node.js 12 for some steps, thanks to a recent work by Oscar Dominguez to upgrade actions/checkout from v2 (which required Node.js 12) to v3 (which runs with recommended Node.js 16).

Upgrade actions/upload-artifact and actions/download-artifact from v2 to v3, following suit.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 * The CI run hasn't finished, but it seems to be doing well
   https://github.com/git/git/actions/runs/3627513480
   We are also getting complaint about our use of set-output command
   that is deprecated, which will need to be addressed, too.
 .github/workflows/main.yml | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 5262823eb1..7a24c6613e 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -94,7 +94,7 @@ jobs:
     - name: zip up tracked files
       run: git archive -o artifacts/tracked.tar.gz HEAD
     - name: upload tracked files and build artifacts
-      uses: actions/upload-artifact@v2
+      uses: actions/upload-artifact@v3
       with:
         name: windows-artifacts
         path: artifacts
@@ -108,7 +108,7 @@ jobs:
         nr: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
     steps:
     - name: download tracked files and build artifacts
-      uses: actions/download-artifact@v2
+      uses: actions/download-artifact@v3
       with:
         name: windows-artifacts
         path: ${{github.workspace}}
@@ -125,7 +125,7 @@ jobs:
       run: ci/print-test-failures.sh
     - name: Upload failed tests' directories
       if: failure() && env.FAILED_TEST_ARTIFACTS != ''
-      uses: actions/upload-artifact@v2
+      uses: actions/upload-artifact@v3
       with:
         name: failed-tests-windows
         path: ${{env.FAILED_TEST_ARTIFACTS}}
@@ -177,7 +177,7 @@ jobs:
     - name: zip up tracked files
       run: git archive -o artifacts/tracked.tar.gz HEAD
     - name: upload tracked files and build artifacts
-      uses: actions/upload-artifact@v2
+      uses: actions/upload-artifact@v3
       with:
         name: vs-artifacts
         path: artifacts
@@ -192,7 +192,7 @@ jobs:
     steps:
     - uses: git-for-windows/setup-git-for-windows-sdk@v1
     - name: download tracked files and build artifacts
-      uses: actions/download-artifact@v2
+      uses: actions/download-artifact@v3
       with:
         name: vs-artifacts
         path: ${{github.workspace}}
@@ -210,7 +210,7 @@ jobs:
       run: ci/print-test-failures.sh
     - name: Upload failed tests' directories
       if: failure() && env.FAILED_TEST_ARTIFACTS != ''
-      uses: actions/upload-artifact@v2
+      uses: actions/upload-artifact@v3
       with:
         name: failed-tests-windows
         path: ${{env.FAILED_TEST_ARTIFACTS}}
@@ -267,7 +267,7 @@ jobs:
       run: ci/print-test-failures.sh
     - name: Upload failed tests' directories
       if: failure() && env.FAILED_TEST_ARTIFACTS != ''
-      uses: actions/upload-artifact@v2
+      uses: actions/upload-artifact@v3
       with:
         name: failed-tests-${{matrix.vector.jobname}}
         path: ${{env.FAILED_TEST_ARTIFACTS}}
-- 
2.39.0-rc2
Previous: Junio C HamanoNext: Johannes Schindelin
Message 9 of 13 in “ci(main): upgrade actions/checkout to v3”
  1. 0/2 ci(main): upgrade actions/checkout to v3Oscar Dominguez via GitGitGadget, Oct 10, 2022
  2. 2/2 ci(main): linux32 uses actions/checkout@v2Oscar Dominguez via GitGitGadget, Oct 10, 2022
  3. Junio C HamanoOct 10, 2022
  4. Junio C HamanoOct 10, 2022
  5. 1/2 ci(main): upgrade actions/checkout to v3Oscar Dominguez via GitGitGadget, Oct 10, 2022
  6. Junio C HamanoOct 10, 2022
  7. ci(main): upgrade actions/checkout to v3Oscar Dominguez via GitGitGadget, Dec 5, 2022
  8. Junio C HamanoDec 5, 2022
  9. ci: use actions/{upload,download}-artifact@v3Junio C Hamano, Dec 6, 2022
  10. Johannes SchindelinDec 6, 2022
  11. Junio C HamanoDec 6, 2022
  12. Junio C HamanoDec 7, 2022
  13. Johannes SchindelinDec 7, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.