From c4d6eb3907e8bf6e9d1526772a4778834f9b025c Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Thu, 20 Oct 2022 21:17:02 +0200 Subject: [PATCH] [ci] Do not use the set-output command The `set-output` command is deprecated. Use the `GITHUB_OUTPUT` environment file. Refs: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3a787a65..f21a98e9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,9 +44,10 @@ jobs: matrix.os == 'ubuntu-latest' && matrix.node == 16 && matrix.arch == 'x64' - run: npm test - - run: - echo ::set-output name=job_id::$(node -e - "console.log(crypto.randomBytes(16).toString('hex'))") + - run: | + id=$(node -e "console.log(crypto.randomBytes(16).toString('hex'))") + + echo "job_id=$id" >> $GITHUB_OUTPUT id: get_job_id shell: bash - uses: coverallsapp/github-action@1.1.3