[latex3-commits] [latex3/latex2e] dependabot/github_actions/actions/upload-artifact-4, develop: Split documentation artifacts (4bb02a2c)

github at latex-project.org github at latex-project.org
Sun Dec 24 12:53:43 CET 2023


Repository : https://github.com/latex3/latex2e
On branches: dependabot/github_actions/actions/upload-artifact-4,develop
Link       : https://github.com/latex3/latex2e/commit/4bb02a2ce73ecf908401a924a38ddb90686725d6

>---------------------------------------------------------------

commit 4bb02a2ce73ecf908401a924a38ddb90686725d6
Author: Yukai Chou <muzimuzhi at gmail.com>
Date:   Tue Dec 19 01:58:54 2023 +0800

    Split documentation artifacts
    
    This is required by incoming actions/upload-artifact at v4, which disables uploading
    to the same named artifact multiple times.
    
    See
    - https://github.blog/changelog/2023-12-14-github-actions-artifacts-v4-is-now-generally-available/
    - https://github.com/actions/toolkit/tree/68f22927e727a60caff909aaaec1ab7267b39f75/packages/artifact


>---------------------------------------------------------------

4bb02a2ce73ecf908401a924a38ddb90686725d6
 .github/workflows/main.yaml    | 3 ++-
 .github/workflows/pretest.yaml | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 377e61ad..d3efcaa3 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -187,7 +187,8 @@ jobs:
       - name: Archive documentation
         uses: actions/upload-artifact at v3
         with:
-          name: Documentation
+          # example names: "Documentation-base-1", "Documentation-requires"
+          name: Documentation-${{ matrix.module }}${{ matrix.environment && format('-{0}', env.LTX_DOC_COMPONENT) || ''}}
           path: "**/*.pdf"
           # Decide how long to keep the test output artifact:
           retention-days: 21
diff --git a/.github/workflows/pretest.yaml b/.github/workflows/pretest.yaml
index ed59dcf6..834add22 100644
--- a/.github/workflows/pretest.yaml
+++ b/.github/workflows/pretest.yaml
@@ -165,7 +165,8 @@ jobs:
       - name: Archive documentation
         uses: actions/upload-artifact at v3
         with:
-          name: Documentation
+          # example names: "Documentation-base-1", "Documentation-requires"
+          name: Documentation-${{ matrix.module }}${{ matrix.environment && format('-{0}', env.LTX_DOC_COMPONENT) || ''}}
           path: "**/*.pdf"
           # Decide how long to keep the test output artifact:
           retention-days: 21





More information about the latex3-commits mailing list.