From a5e8337c866dd72a91a2203abeb5772eca503a52 Mon Sep 17 00:00:00 2001 From: Akash Satheesan Date: Tue, 11 May 2021 02:54:13 +0530 Subject: [PATCH] chore(ci): fix release scripts --- ci/build/release-github-assets.sh | 4 +--- ci/lib.sh | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ci/build/release-github-assets.sh b/ci/build/release-github-assets.sh index a025ee596..43083e137 100755 --- a/ci/build/release-github-assets.sh +++ b/ci/build/release-github-assets.sh @@ -12,9 +12,7 @@ main() { download_artifact release-packages ./release-packages local assets=(./release-packages/code-server*"$VERSION"*{.tar.gz,.deb,.rpm}) - for i in "${!assets[@]}"; do - assets[$i]="--attach=${assets[$i]}" - done + EDITOR=true gh release upload "v$VERSION" "${assets[@]}" } diff --git a/ci/lib.sh b/ci/lib.sh index 604c6e7b6..c16d44fc3 100755 --- a/ci/lib.sh +++ b/ci/lib.sh @@ -54,7 +54,7 @@ arch() { # https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs get_artifacts_url() { local artifacts_url - local workflow_runs_url="repos/:owner/:repo/actions/workflows/ci.yaml/runs?status=success&event=pull_request" + local workflow_runs_url="repos/:owner/:repo/actions/workflows/ci.yaml/runs?event=pull_request" # For releases, we look for run based on the branch name v$code_server_version # example: v3.10.0 local version_branch="v$VERSION"