From 2ef6bd2b3602680ba7e2640d354c774f27495ca7 Mon Sep 17 00:00:00 2001 From: tanlang Date: Tue, 20 Jun 2023 10:52:14 +0800 Subject: [PATCH] chore: correct god eye url and prioritize ftp --- .github/workflows/common_build_upload.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/common_build_upload.yml b/.github/workflows/common_build_upload.yml index 0a42ef255b..3680d5fa85 100644 --- a/.github/workflows/common_build_upload.yml +++ b/.github/workflows/common_build_upload.yml @@ -198,10 +198,10 @@ jobs: - name: push god-eye run: | export link=${{steps.vars.outputs.job_url}} - if [[ "${{ steps.release.outcome }}" == "success" ]]; then - export link=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/releases/download/${{steps.vars.outputs.github_tag}}/${{steps.vars.outputs.artifact_name}} - elif [[ "${{ steps.uploadftp.outcome }}" == "success" ]]; then + if [[ "${{ steps.uploadftp.outcome }}" == "success" ]]; then export link=ftp://${{secrets.FTP_HOST}}/${{steps.vars.outputs.repo_name}}/${{steps.vars.outputs.artifact_name}} + elif [[ "${{ steps.release.outcome }}" == "success" ]]; then + export link=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/releases/download/${{steps.vars.outputs.github_tag}}/${{steps.vars.outputs.repo_name}}_${{steps.vars.outputs.tag}}_ubuntu.tar.gz elif [[ "${{ steps.cposs.outcome }}" == "success" ]]; then export link=${{steps.cposs.outputs.oss_signed_url}} fi