mirror of
https://github.com/super-linter/super-linter.git
synced 2025-01-09 07:54:55 -05:00
adding the old way (#1595)
This commit is contained in:
parent
7c5141d3a1
commit
3cb88cd394
1 changed files with 13 additions and 23 deletions
36
.github/workflows/deploy-RELEASE-standard.yml
vendored
36
.github/workflows/deploy-RELEASE-standard.yml
vendored
|
@ -144,35 +144,25 @@ jobs:
|
||||||
ghcr.io/github/super-linter:v4
|
ghcr.io/github/super-linter:v4
|
||||||
ghcr.io/github/super-linter:${{ env.RELEASE_VERSION }}
|
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 #
|
# Create the GitHub Release #
|
||||||
#############################
|
#############################
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
if: success()
|
if: success()
|
||||||
id: create_release
|
id: create_release
|
||||||
run: |
|
uses: actions/create-release@v1
|
||||||
UPDATED_BODY_STRING=$(echo "${{ github.event.issue.body }}" | \
|
env:
|
||||||
sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g')
|
# This token is provided by Actions,
|
||||||
curl --fail -X POST \
|
# you do not need to create your own token
|
||||||
--url https://api.github.com/repos/${{ github.repository }}/releases \
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
-H 'Accept: application/vnd.github.v3+json' \
|
with:
|
||||||
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
commitish: ${{ env.PR_REF }}
|
||||||
-H 'Content-Type: application/json' \
|
tag_name: ${{ env.RELEASE_VERSION }}
|
||||||
--data "{ \"tag_name\": \"${{ env.RELEASE_VERSION }}\", \
|
release_name: Release ${{ env.RELEASE_VERSION }}
|
||||||
\"target_commitish\": \"${{ env.PR_REF }}\", \
|
body: |
|
||||||
\"name\": \"Release ${{ env.RELEASE_VERSION }}\", \
|
${{ github.event.issue.body }}
|
||||||
\"draft\": false, \"prerelease\": false, \
|
draft: false
|
||||||
\"body\": \"${{ env.UPDATED_BODY_STRING }}\" \
|
prerelease: false
|
||||||
\"repository_action_release_attributes\": \
|
|
||||||
{ \"published_on_marketplace\": true }}"
|
|
||||||
|
|
||||||
#####################################################
|
#####################################################
|
||||||
# Create the Required status check for Stack Linter #
|
# Create the Required status check for Stack Linter #
|
||||||
|
|
Loading…
Reference in a new issue