From 3736502e53dfa896dba81a38e9dd5af51ac7a11b Mon Sep 17 00:00:00 2001 From: Philipp Borgers Date: Wed, 2 Nov 2022 16:12:26 +0100 Subject: [PATCH] Github actions: Fix deprecation warning for set-output Use of `::set-output` is deprecated. See: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands --- .github/workflows/android_release.yml | 5 +---- .github/workflows/linux_debug.yml | 5 +---- .github/workflows/linux_release.yml | 5 +---- .github/workflows/macos_release.yml | 5 +---- 4 files changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/android_release.yml b/.github/workflows/android_release.yml index aa335dc..d04a7ee 100644 --- a/.github/workflows/android_release.yml +++ b/.github/workflows/android_release.yml @@ -68,10 +68,7 @@ jobs: - name: Prepare ccache timestamp id: ccache_cache_timestamp - shell: cmake -P {0} - run: | - string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) - message("::set-output name=timestamp::${current_date}") + run: echo "name=timestamp::$(date --utc +'%Y-%m-%d-%H\;%M\;%S')" >> $GITHUB_OUTPUT - name: ccache cache files uses: actions/cache@v3 diff --git a/.github/workflows/linux_debug.yml b/.github/workflows/linux_debug.yml index 77dfe7d..608a1bd 100644 --- a/.github/workflows/linux_debug.yml +++ b/.github/workflows/linux_debug.yml @@ -51,10 +51,7 @@ jobs: - name: Prepare ccache timestamp id: ccache_cache_timestamp - shell: cmake -P {0} - run: | - string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) - message("::set-output name=timestamp::${current_date}") + run: echo "name=timestamp::$(date --utc +'%Y-%m-%d-%H\;%M\;%S')" >> $GITHUB_OUTPUT - name: ccache cache files uses: actions/cache@v3 diff --git a/.github/workflows/linux_release.yml b/.github/workflows/linux_release.yml index a74e153..c4b4895 100644 --- a/.github/workflows/linux_release.yml +++ b/.github/workflows/linux_release.yml @@ -60,10 +60,7 @@ jobs: - name: Prepare ccache timestamp id: ccache_cache_timestamp - shell: cmake -P {0} - run: | - string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) - message("::set-output name=timestamp::${current_date}") + run: echo "name=timestamp::$(date --utc +'%Y-%m-%d-%H\;%M\;%S')" >> $GITHUB_OUTPUT - name: ccache cache files uses: actions/cache@v3 diff --git a/.github/workflows/macos_release.yml b/.github/workflows/macos_release.yml index 42dd384..b2da1b5 100644 --- a/.github/workflows/macos_release.yml +++ b/.github/workflows/macos_release.yml @@ -59,10 +59,7 @@ jobs: - name: Prepare ccache timestamp id: ccache_cache_timestamp - shell: cmake -P {0} - run: | - string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) - message("::set-output name=timestamp::${current_date}") + run: echo "name=timestamp::$(date --utc +'%Y-%m-%d-%H\;%M\;%S')" >> $GITHUB_OUTPUT - name: ccache cache files uses: actions/cache@v3