From 29df21c3baf08322a81fd837f0a520a252d44c16 Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Fri, 14 Oct 2022 20:13:01 +0800 Subject: [PATCH] ci: update set-output to Environment files https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter --- .github/workflows/release.yml | 9 +++++---- .github/workflows/test.yml | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e243922ae..47411e748 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,14 +19,14 @@ jobs: steps: - id: set-ver run: | - echo "::set-output name=version::$(date -d "8 hour" -u +3.%y.%m%d%H)" + echo "version=$(date -d "8 hour" -u +3.%y.%m%d%H)" >> $GITHUB_OUTPUT - id: check run: | if [ ! -z "${{ secrets.RELEASE_KEY_STORE }}" ]; then - echo "::set-output name=sign::yes" + echo "sign=yes" >> $GITHUB_OUTPUT fi if [ ! -z "${{ secrets.SERVICE_ACCOUNT_JSON }}" ]; then - echo "::set-output name=play::yes" + echo "play=yes" >> $GITHUB_OUTPUT fi build: @@ -57,7 +57,8 @@ jobs: - name: Release Apk Sign run: | - echo "::set-output name=KeyStore::yes" + # not use this output + # echo "KeyStore=yes" >> $GITHUB_OUTPUT echo RELEASE_KEY_ALIAS='${{ secrets.RELEASE_KEY_ALIAS }}' >> gradle.properties echo RELEASE_KEY_PASSWORD='${{ secrets.RELEASE_KEY_PASSWORD }}' >> gradle.properties echo RELEASE_STORE_PASSWORD='${{ secrets.RELEASE_STORE_PASSWORD }}' >> gradle.properties diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d6f2fa452..ca0c9bb17 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,15 +22,15 @@ jobs: steps: - id: set-ver run: | - echo "::set-output name=version::$(date -d "8 hour" -u +3.%y.%m%d%H)" - echo "::set-output name=versionL::$(date -d "8 hour" -u +3.%y.%m%d%H%M)" + echo "version=$(date -d "8 hour" -u +3.%y.%m%d%H)" >> $GITHUB_OUTPUT + echo "versionL=$(date -d "8 hour" -u +3.%y.%m%d%H%M)" >> $GITHUB_OUTPUT - id: check run: | if [ ${{ secrets.LANZOU_ID }} ]; then - echo "::set-output name=lanzou::yes" + echo "lanzou=yes" >> $GITHUB_OUTPUT fi if [ ${{ secrets.BOT_TOKEN }} ]; then - echo "::set-output name=telegram::yes" + echo "telegram=yes" >> $GITHUB_OUTPUT fi build: