diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e7a3b81f2..2ac2dbaec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,17 +33,17 @@ jobs: - name: Set publish target id: publish_target run: | - echo "PUBLISH_ALL_TARGET=true" >> "$GITHUB_OUTPUT" - echo "TAG_NAME=${{ github.event.release.tag_name }}" >> "$GITHUB_OUTPUT" + echo "::set-output name=PUBLISH_ALL_TARGET::true" + echo "::set-output name=TAG_NAME::${{ github.event.release.tag_name }}" if [[ ${{ github.event.release.tag_name }} == *"python-sdk"* ]]; then - echo "PUBLISH_ALL_TARGET=false" >> "$GITHUB_OUTPUT" + echo "::set-output name=PUBLISH_ALL_TARGET::false" elif [[ ${{ github.event.release.tag_name }} == *"java-sdk"* ]]; then - echo "PUBLISH_ALL_TARGET=false" >> "$GITHUB_OUTPUT" + echo "::set-output name=PUBLISH_ALL_TARGET::false" - name: Get the version id: get_sdk_version run: | - echo "AVI_VERSION=$(python ./python/version.py)" >> "$GITHUB_OUTPUT" + echo "::set-output name=AVI_VERSION::$(python ./python/version.py)" JAVA_VERSION=$(echo ${GITHUB_REF##*/} | cut -d - -f 2) if [[ "$JAVA_VERSION" == *"post"* ]]; then echo "Java version post" @@ -56,7 +56,7 @@ jobs: JAVA_VERSION=$JAVA_VERSION.RELEASE fi echo "Java version ${JAVA_VERSION}" - echo "JAVA_RELEASE_VERSION=${JAVA_VERSION}" >> "$GITHUB_OUTPUT" + echo "::set-output name=JAVA_RELEASE_VERSION::${JAVA_VERSION}" - if: steps.publish_target.outputs.PUBLISH_ALL_TARGET == 'true' || contains(steps.publish_target.outputs.TAG_NAME, 'java-sdk') name: Publish JAVA Packages @@ -181,4 +181,3 @@ jobs: asset_path: avisdk-${{ steps.get_sdk_version.outputs.JAVA_RELEASE_VERSION }}-sources.jar asset_name: Java-avisdk-${{ steps.get_sdk_version.outputs.JAVA_RELEASE_VERSION }}-javasources.jar asset_content_type: application/java-archive -