From 5006b8fbb4615093b335def4f37f8b94e5bf2101 Mon Sep 17 00:00:00 2001 From: Arun Sathiya Date: Thu, 18 Jan 2024 15:26:42 -0800 Subject: [PATCH] ci: Use GITHUB_OUTPUT envvar instead of set-output command `save-state` and `set-output` commands used in GitHub Actions are deprecated and [GitHub recommends using environment files](https://github.blog/changelog/2023-07-24-github-actions-update-on-save-state-and-set-output-commands/). This PR updates the usage of `set-output` to `$GITHUB_OUTPUT` Instructions for envvar usage from GitHub docs: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter --- .github/workflows/macos.yml | 2 +- .github/workflows/nightly-conda.yml | 2 +- .github/workflows/ubuntu.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index a9de1e719..314ade3cf 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -31,7 +31,7 @@ jobs: - name: Prepare ccache timestamp id: ccache_cache_timestamp run: | - echo "::set-output name=timestamp::$(/bin/date -u "+%Y%m%d-%H:%M:%S")" + echo "timestamp=$(/bin/date -u "+%Y%m%d-%H:%M:%S")" >> $GITHUB_OUTPUT shell: bash - name: Load ccache files diff --git a/.github/workflows/nightly-conda.yml b/.github/workflows/nightly-conda.yml index 1217d3449..7efc5bd07 100644 --- a/.github/workflows/nightly-conda.yml +++ b/.github/workflows/nightly-conda.yml @@ -43,7 +43,7 @@ jobs: - name: Prepare ccache timestamp id: ccache_cache_timestamp run: | - echo "::set-output name=timestamp::$(/bin/date -u "+%Y%m%d-%H:%M:%S")" + echo "timestamp=$(/bin/date -u "+%Y%m%d-%H:%M:%S")" >> $GITHUB_OUTPUT shell: bash - name: Load ccache files diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 00cf79e54..05de090a1 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -32,7 +32,7 @@ jobs: - name: Prepare ccache timestamp id: ccache_cache_timestamp run: | - echo "::set-output name=timestamp::$(/bin/date -u "+%Y%m%d-%H:%M:%S")" + echo "timestamp=$(/bin/date -u "+%Y%m%d-%H:%M:%S")" >> $GITHUB_OUTPUT shell: bash - name: Load ccache files