Skip to content

Commit

Permalink
fix godeye push method (#4625)
Browse files Browse the repository at this point in the history
  • Loading branch information
zl03jsj authored Dec 20, 2021
1 parent 6e20809 commit 3868538
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tag-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,15 @@ jobs:
echo github_repository: $GITHUB_REPOSITORY
echo github_repository: ${{github.repository}}
export job_url=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
if [[ "$tag" =~ "v" ]]; then
if [[ "${{github.event_name}}" == "create" ]]&& [[ "$github_tag" =~ "v" ]]; then
export godeye_method=pushRelease
fi
if [[ "$branch" == "" ]]; then
export branch=$github_tag
fi
if [[ "$tag" == "" ]]; then
export tag=$github_tag
fi
echo "::set-output name=commit::$commit"
echo "::set-output name=short::$short"
echo "::set-output name=github_tag::$github_tag"
Expand Down Expand Up @@ -128,7 +134,7 @@ jobs:
export link=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/releases/download/${{steps.vars.outputs.github_tag}}/${{steps.vars.outputs.artifact_name}}
fi
set +e
curl -v --max-time 20 -X PUT ${{secrets.GODEYE_URL}}/${{steps.vars.outputs.godeye_method}} \
curl --max-time 20 -X PUT ${{secrets.GODEYE_URL}}/${{steps.vars.outputs.godeye_method}} \
--data-urlencode "type=1" \
--data-urlencode "commitId=${{steps.vars.outputs.commit}}" \
--data-urlencode "branch=${{steps.vars.outputs.branch}}" \
Expand Down

0 comments on commit 3868538

Please sign in to comment.