[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Avoid deprecated GitHub Actions features (e0ea39d5)
Marcel Fabian Krüger
tex at 2krueger.de
Sat Nov 5 13:39:59 CET 2022
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/e0ea39d51d9c4d34153ced0a7bc285c19dc16fe2
>---------------------------------------------------------------
commit e0ea39d51d9c4d34153ced0a7bc285c19dc16fe2
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Sat Nov 5 12:46:03 2022 +0100
Avoid deprecated GitHub Actions features
>---------------------------------------------------------------
e0ea39d51d9c4d34153ced0a7bc285c19dc16fe2
.github/workflows/cache.yaml | 5 ++---
.github/workflows/deploy.yaml | 11 +++++------
.github/workflows/main.yaml | 11 +++++------
3 files changed, 12 insertions(+), 15 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..c59f391a 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 }}
@@ -87,7 +86,7 @@ jobs:
- name: Send mail
# The explicit commit hash ensures that this can't be used by dawidd6 as a
# backdoor to execute arbitrary code during our runs.
- uses: dawidd6/action-send-mail at ceb614a2c5737d913f2d2729e2bcc70ad933382b
+ uses: dawidd6/action-send-mail at 6063705cefe50cb915fc53bb06d4049cae2953b2
with:
# Currently using my (Marcel's) mail server for sending mails.
server_address: typesetting.eu
@@ -110,7 +109,7 @@ jobs:
More information can be found at
${{steps.release.outputs.html_url}}
- name: Send failure notification
- uses: dawidd6/action-send-mail at ceb614a2c5737d913f2d2729e2bcc70ad933382b
+ uses: dawidd6/action-send-mail at 6063705cefe50cb915fc53bb06d4049cae2953b2
if: ${{ failure() }}
with:
server_address: typesetting.eu
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index f7a03542..5eef598d 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 }}
@@ -85,7 +84,7 @@ jobs:
# 2. If we succeed building documentation
- name: Archive documentation
if: ${{ matrix.artifact_name == 'Documentation' && success() }}
- uses: actions/upload-artifact at v2
+ uses: actions/upload-artifact at v3
with:
name: ${{ matrix.artifact_name }}
path: "**/*.pdf"
@@ -108,7 +107,7 @@ jobs:
- name: Send mail
# The explicit commit hash ensures that this can't be used by dawidd6 as a
# backdoor to execute arbitrary code during our runs.
- uses: dawidd6/action-send-mail at ceb614a2c5737d913f2d2729e2bcc70ad933382b
+ uses: dawidd6/action-send-mail at 6063705cefe50cb915fc53bb06d4049cae2953b2
with:
# Currently using my (Marcel's) mail server for sending mails.
server_address: typesetting.eu
More information about the latex3-commits
mailing list.