From 3cb88cd3942e5cf4913927987335e6c10dc022d7 Mon Sep 17 00:00:00 2001 From: Lukas Gravley Date: Tue, 25 May 2021 16:09:02 -0500 Subject: [PATCH] adding the old way (#1595) --- .github/workflows/deploy-RELEASE-standard.yml | 36 +++++++------------ 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/.github/workflows/deploy-RELEASE-standard.yml b/.github/workflows/deploy-RELEASE-standard.yml index f2b0d4d6..802d4941 100644 --- a/.github/workflows/deploy-RELEASE-standard.yml +++ b/.github/workflows/deploy-RELEASE-standard.yml @@ -144,35 +144,25 @@ jobs: ghcr.io/github/super-linter:v4 ghcr.io/github/super-linter:${{ env.RELEASE_VERSION }} - ######################## - # Get the current date # - ######################## - - name: Update Release Body String - run: | - echo "UPDATED_BODY_STRING=$(echo "${{ github.event.issue.body }}" | \ - sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g')" >> ${GITHUB_ENV} - ############################# # Create the GitHub Release # ############################# - name: Create Release if: success() id: create_release - run: | - UPDATED_BODY_STRING=$(echo "${{ github.event.issue.body }}" | \ - sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g') - curl --fail -X POST \ - --url https://api.github.com/repos/${{ github.repository }}/releases \ - -H 'Accept: application/vnd.github.v3+json' \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - -H 'Content-Type: application/json' \ - --data "{ \"tag_name\": \"${{ env.RELEASE_VERSION }}\", \ - \"target_commitish\": \"${{ env.PR_REF }}\", \ - \"name\": \"Release ${{ env.RELEASE_VERSION }}\", \ - \"draft\": false, \"prerelease\": false, \ - \"body\": \"${{ env.UPDATED_BODY_STRING }}\" \ - \"repository_action_release_attributes\": \ - { \"published_on_marketplace\": true }}" + uses: actions/create-release@v1 + env: + # This token is provided by Actions, + # you do not need to create your own token + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + commitish: ${{ env.PR_REF }} + tag_name: ${{ env.RELEASE_VERSION }} + release_name: Release ${{ env.RELEASE_VERSION }} + body: | + ${{ github.event.issue.body }} + draft: false + prerelease: false ##################################################### # Create the Required status check for Stack Linter #