From f438ffc6e4c4f1a894dd690340ce8e402cb36a09 Mon Sep 17 00:00:00 2001 From: Justin Ma Date: Tue, 13 Jun 2023 21:43:07 +0800 Subject: [PATCH] Fix removal of old nightly releases (#9423) # Description Fix removal of old nightly releases --- .github/workflows/nightly-build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 8b902b0f47..3dadb4f31b 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -64,11 +64,11 @@ jobs: git push origin --delete $release.tag_name print $'Deleting release ($release.tag_name)' let delete_url = $'https://api.github.com/repos/nushell/nightly/releases/($release.id)' - # let version = [X-GitHub-Api-Version 2022-11-28] - # let auth = [Authorization 'Bearer ${{ secrets.GITHUB_TOKEN }}'] - # let accept = [Accept 'application/vnd.github+json'] + let version = "X-GitHub-Api-Version: 2022-11-28" + let accept = "Accept: application/vnd.github+json" + let auth = "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" # http delete $delete_url -H $version -H $auth -H $accept - curl -L -X DELETE -H "Accept: application/vnd.github+json" -H "Authorization: Bearer " -H "X-GitHub-Api-Version: 2022-11-28" $delete_url + curl -L -X DELETE -H $accept -H $auth -H $version $delete_url } all: