From c7d96253c02e80ab48607c65a5e19fa3ae32f9af Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Fri, 14 Oct 2022 02:40:09 +0900 Subject: [PATCH] ci: twister: Use output parameter file This commit updates the workflow to use the output parameter file (`GITHUB_OUTPUT`) instead of the stdout-based output parameter setting, which is now deprecated by GitHub and will be removed in the near future. Signed-off-by: Stephanos Ioannidis --- .github/workflows/twister.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/twister.yaml b/.github/workflows/twister.yaml index edd250ddc6a..11ffa9235e8 100644 --- a/.github/workflows/twister.yaml +++ b/.github/workflows/twister.yaml @@ -106,9 +106,9 @@ jobs: else size=0 fi - echo "::set-output name=subset::${subset}"; - echo "::set-output name=size::${size}"; - echo "::set-output name=fullrun::${TWISTER_FULL}"; + echo "subset=${subset}" >> $GITHUB_OUTPUT + echo "size=${size}" >> $GITHUB_OUTPUT + echo "fullrun=${TWISTER_FULL}" >> $GITHUB_OUTPUT twister-build: runs-on: zephyr_runner @@ -184,7 +184,7 @@ jobs: string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) string(REPLACE "/" "_" repo ${{github.repository}}) string(REPLACE "-" "_" repo2 ${repo}) - message("::set-output name=repo::${repo2}") + file(APPEND $ENV{GITHUB_OUTPUT} "repo=${repo2}\n") - name: use cache id: cache-ccache