From a01f86749e868514c566e2501e43c017b6ef7746 Mon Sep 17 00:00:00 2001 From: Anton Hurlenko Date: Sat, 4 Nov 2023 20:19:36 +0200 Subject: [PATCH] Use GITHUB_OUTPUT to share variables across steps --- .github/workflows/dockerimage.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index 5dc97b1..07380d3 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -16,8 +16,8 @@ jobs: sudo apt-get update && sudo apt-get install jq -y THIS_REPO=https://api.github.com/repos/$GITHUB_REPOSITORY/releases/latest TARGET_REPO=https://api.github.com/repos/mayswind/AriaNg/releases/latest - echo "current=$(curl $THIS_REPO | jq -r '.tag_name')" >> $GITHUB_STATE - echo "target=$(curl $TARGET_REPO | jq -r '.tag_name')" >> $GITHUB_STATE + echo "current=$(curl $THIS_REPO | jq -r '.tag_name')" >> $GITHUB_OUTPUT + echo "target=$(curl $TARGET_REPO | jq -r '.tag_name')" >> $GITHUB_OUTPUT id: releases - name: Install Docker CE