[latex3-commits] [git/LaTeX3-latex3-latex2e] new-github-actions-behavior: Avoid deprecated GitHub Actions features (7d6fcf15)

Marcel Fabian Krüger tex at 2krueger.de
Sat Nov 5 12:52:19 CET 2022


Repository : https://github.com/latex3/latex2e
On branch  : new-github-actions-behavior
Link       : https://github.com/latex3/latex2e/commit/7d6fcf1550ab285eae65753035f04277a258d525

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

commit 7d6fcf1550ab285eae65753035f04277a258d525
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sat Nov 5 12:46:03 2022 +0100

    Avoid deprecated GitHub Actions features


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

7d6fcf1550ab285eae65753035f04277a258d525
 .github/workflows/cache.yaml  | 5 ++---
 .github/workflows/deploy.yaml | 7 +++----
 .github/workflows/main.yaml   | 7 +++----
 3 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/.github/workflows/cache.yaml b/.github/workflows/cache.yaml
index b40cabee..905f725b 100644
--- a/.github/workflows/cache.yaml
+++ b/.github/workflows/cache.yaml
@@ -23,8 +23,7 @@ jobs:
       - name: Generate unique ID
         id: get-id
         run: |
-          echo -n ::set-output name=id::
-          cat /proc/sys/kernel/random/uuid
+          echo "id=$(cat /proc/sys/kernel/random/uuid)" >> $GITHUB_STATE
       # Actually load the cache. Since we never reuse the key, we need restore-keys
       # to indicate the prefix of our caches. This loads the newest cache with this
       # prefix in the key.
@@ -32,7 +31,7 @@ jobs:
       # If we want to force regeneration of the cache, increase the number after
       # *both* instances of "texlive-v" and synchronize the other workflow files.
       - name: Load cache
-        uses: actions/cache at v2
+        uses: actions/cache at v3
         with:
           path: ~/texlive
           key: texlive2022-v0-${{ steps.get-id.outputs.id }}
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index 0cfaf3d0..1a7cb1f9 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -16,15 +16,14 @@ jobs:
     steps:
       # Boilerplate
       - name: Checkout repository
-        uses: actions/checkout at v2
+        uses: actions/checkout at v3
       # GitHub Actions don't regenerate the test if the key doesn't change, so
       # we integrate a random UUID into the key to keep them different.
       # DO NOT CHANGE THIS
       - name: Generate unique ID
         id: get-id
         run: |
-          echo -n ::set-output name=id::
-          cat /proc/sys/kernel/random/uuid
+          echo "id=$(cat /proc/sys/kernel/random/uuid)" >> $GITHUB_STATE
       # Actually load the cache. Since we never reuse the key, we need restore-keys
       # to indicate the prefix of our caches. This loads the newest cache with this
       # prefix in the key.
@@ -32,7 +31,7 @@ jobs:
       # If we want to force regeneration of the cache, increase the number after
       # *both* instances of "texlive-v"
       - name: Load cache
-        uses: actions/cache at v2
+        uses: actions/cache at v3
         with:
           path: ~/texlive
           key: texlive2022-v0-${{ steps.get-id.outputs.id }}
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index f7a03542..b7c22fe3 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -42,15 +42,14 @@ jobs:
     steps:
       # Boilerplate
       - name: Checkout repository
-        uses: actions/checkout at v2
+        uses: actions/checkout at v3
       # GitHub Actions don't regenerate the test if the key doesn't change, so
       # we integrate a random UUID into the key to keep them different.
       # DO NOT CHANGE THIS
       - name: Generate unique ID
         id: get-id
         run: |
-          echo -n ::set-output name=id::
-          cat /proc/sys/kernel/random/uuid
+          echo "id=$(cat /proc/sys/kernel/random/uuid)" >> $GITHUB_OUTPUT
       # Actually load the cache. Since we never reuse the key, we need restore-keys
       # to indicate the prefix of our caches. This loads the newest cache with this
       # prefix in the key.
@@ -58,7 +57,7 @@ jobs:
       # If we want to force regeneration of the cache, increase the number after
       # *both* instances of "texlive-v"
       - name: Load cache
-        uses: actions/cache at v2
+        uses: actions/cache at v3
         with:
           path: ~/texlive
           key: texlive2022-v0-${{ steps.get-id.outputs.id }}





More information about the latex3-commits mailing list.