[latex3-commits] [git/LaTeX3-latex3-latex3] main: Avoid deprecated GitHub Actions features (201a0ebce)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Nov 8 21:19:19 CET 2022


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/201a0ebceefbc7b40dcefa600be321054ad0de24

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

commit 201a0ebceefbc7b40dcefa600be321054ad0de24
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Nov 8 20:19:19 2022 +0000

    Avoid deprecated GitHub Actions features


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

201a0ebceefbc7b40dcefa600be321054ad0de24
 .github/workflows/cache.yaml  | 5 ++---
 .github/workflows/deploy.yaml | 5 ++---
 .github/workflows/main.yaml   | 5 ++---
 3 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/cache.yaml b/.github/workflows/cache.yaml
index 3192af745..a224cd188 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: texlive-v1-${{ steps.get-id.outputs.id }}
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index ac1514610..d5234d7c9 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.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"
       - name: Load cache
-        uses: actions/cache at v2
+        uses: actions/cache at v3
         with:
           path: ~/texlive
           key: texlive-v1-${{ steps.get-id.outputs.id }}
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 66a2f95a7..9abdcec7d 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -46,8 +46,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.
@@ -55,7 +54,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: texlive-v1-${{ steps.get-id.outputs.id }}





More information about the latex3-commits mailing list.