This is an automated email from the ASF dual-hosted git repository.

pengzheng pushed a commit to branch feature/614-github-cache-build-deps
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to 
refs/heads/feature/614-github-cache-build-deps by this push:
     new fb32fb54 Remove deprecated `::set-output`
fb32fb54 is described below

commit fb32fb54cd46fd1c060073370e10bba3862a68fd
Author: PengZheng <[email protected]>
AuthorDate: Wed Aug 30 23:37:02 2023 +0800

    Remove deprecated `::set-output`
---
 .github/workflows/conan_create.yml | 8 ++------
 .github/workflows/coverage.yml     | 4 +---
 .github/workflows/macos.yml        | 8 ++------
 .github/workflows/ubuntu.yml       | 8 ++------
 4 files changed, 7 insertions(+), 21 deletions(-)

diff --git a/.github/workflows/conan_create.yml 
b/.github/workflows/conan_create.yml
index 8c997085..8c254902 100644
--- a/.github/workflows/conan_create.yml
+++ b/.github/workflows/conan_create.yml
@@ -50,10 +50,8 @@ jobs:
           restore-keys: ${{ runner.os }}-builder-${{ env.cache-name }}-${{ 
matrix.compiler[0] }}-${{ matrix.type }}-
       - 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}")
+          echo timestamp=`date +"%Y-%m-%d-%H;%M;%S"` >> $GITHUB_OUTPUT
       - name: ccache Cache
         uses: actions/cache@v1
         with:
@@ -102,10 +100,8 @@ jobs:
           restore-keys: ${{ runner.os }}-builder-${{ env.cache-name }}-
       - 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}")
+          echo timestamp=`date +"%Y-%m-%d-%H;%M;%S"` >> $GITHUB_OUTPUT
       - name: ccache Cache
         uses: actions/cache@v1
         with:
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index d449dfbb..336798f2 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -37,10 +37,8 @@ jobs:
           restore-keys: ${{ runner.os }}-gcov-builder-${{ env.cache-name }}-
       - 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}")
+          echo timestamp=`date +"%Y-%m-%d-%H;%M;%S"` >> $GITHUB_OUTPUT
       - name: ccache Cache
         uses: actions/cache@v1
         with:
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index b5509b1f..af126c90 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -40,10 +40,8 @@ jobs:
           restore-keys: ${{ runner.os }}-test-builder-${{ env.cache-name }}-
       - 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}")
+          echo timestamp=`date +"%Y-%m-%d-%H;%M;%S"` >> $GITHUB_OUTPUT
       - name: ccache Cache
         uses: actions/cache@v1
         with:
@@ -89,10 +87,8 @@ jobs:
           brew install lcov zeromq czmq cpputest jansson rapidjson libzip 
ccache
       - 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}")
+          echo timestamp=`date +"%Y-%m-%d-%H;%M;%S"` >> $GITHUB_OUTPUT
       - name: ccache Cache
         uses: actions/cache@v1
         with:
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 495dae98..5a86a7b5 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -58,10 +58,8 @@ jobs:
           restore-keys: ${{ runner.os }}-test-builder-${{ env.cache-name 
}}-${{ matrix.compiler[0] }}-${{ matrix.type }}-
       - 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}")
+          echo timestamp=`date +"%Y-%m-%d-%H;%M;%S"` >> $GITHUB_OUTPUT
       - name: ccache Cache
         uses: actions/cache@v1
         with:
@@ -129,10 +127,8 @@ jobs:
           ccache
     - 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}")
+        echo timestamp=`date +"%Y-%m-%d-%H;%M;%S"` >> $GITHUB_OUTPUT
     - name: ccache Cache
       uses: actions/cache@v1
       with:

Reply via email to