From 81e6e2578fe3df07e9d8aa449613e3480f207a86 Mon Sep 17 00:00:00 2001 From: Doddddd <88972478+Doddddd@users.noreply.github.com> Date: Sun, 22 Oct 2023 16:56:10 +0800 Subject: [PATCH] Update workflows --- .github/workflows/build-release.yaml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 292046f9..a44f72c0 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -62,8 +62,8 @@ jobs: newVersionCode=$((versionCode + 1)) sed -i "s/versionCode = $versionCode/versionCode = $newVersionCode/" build.gradle.kts sed -i "s/versionName = \"$versionName\"/versionName = \"$newVersionName\"/" build.gradle.kts - echo "::set-output name=newVersionName::$newVersionName" - echo "::set-output name=newVersionCode::$newVersionCode" + echo "newVersionName=$newVersionName" >> $GITHUB_OUTPUT + echo "newVersionCode=$newVersionCode" >> $GITHUB_OUTPUT - name: Commit modified version code and make new tag if: ${{ inputs.auto-bump-version }} @@ -99,25 +99,23 @@ jobs: id: real_tag run: | if [[ "${{ inputs.auto-bump-version }}" == "true" ]]; then - echo "::set-output name=tag::v${{ steps.bump-version.outputs.newVersionName }}" + echo "tag=v${{ steps.bump-version.outputs.newVersionName }}" >> $GITHUB_OUTPUT else - echo "::set-output name=tag::$(git describe --tags --abbrev=0) + echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT fi - name: Tag Repo uses: richardsimko/update-tag@v1 with: - tag: ${{ steps.real_tag.outputs.tag }} tag_name: ${{ steps.real_tag.outputs.tag }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.DEFAULT_TOKEN }} - name: Upload Release uses: softprops/action-gh-release@v1 - if: ${{ success() }} + if: ${{ success() }} with: - tag: ${{ github.ref_name }} - tag_name: ${{ github.ref_name }} + tag_name: ${{ steps.real_tag.outputs.tag }} files: app/build/outputs/apk/meta/release/* generate_release_notes: true