Skip to content

Commit

Permalink
deploy(LGCBE-348): get issues from release body
Browse files Browse the repository at this point in the history
  • Loading branch information
Cussa committed Apr 26, 2023
1 parent 43fd654 commit ba8d887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/post_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
id: get_issues
if: success() || failure()
run: |
TICKETS="\""$(git log -1 | grep -io 'LGCBE-[0-9]\+' | sort | uniq | sed ':a; N; $!ba; s/\n/","/g')"\""
TICKETS="\""$(github.event.release.body | grep -io 'LGCBE-[0-9]\+' | sort | uniq | sed ':a; N; $!ba; s/\n/","/g')"\""
echo DATE=$(date -u +"%Y-%m-%dT%H:%M:%S.000Z") >> "$GITHUB_OUTPUT"
echo "ISSUES=$TICKETS" >> "$GITHUB_OUTPUT"
Expand All @@ -46,7 +46,7 @@ jobs:
PAYLOAD=$(echo $PAYLOAD | sed 's/__DEPLOYMENTS_ISSUEKEYS__/${{ steps.get_issues.outputs.ISSUES }}/g')
PAYLOAD=$(echo $PAYLOAD | sed 's/__DEPLOYMENTS_DISPLAYNAME__/Publish version ${{ inputs.VERSION }}/g')
PAYLOAD=$(echo $PAYLOAD | sed 's/__DEPLOYMENTS_URL__/https:\/\/github.com\/22cans\/DynaMight\/actions\/runs\/${{ github.run_id }}/g')
PAYLOAD=$(echo $PAYLOAD | sed 's/__DEPLOYMENTS_DESCRIPTION__/${{ github.event.body }}/g')
PAYLOAD=$(echo $PAYLOAD | sed 's/__DEPLOYMENTS_DESCRIPTION__/${{ github.event.release.body }}/g')
PAYLOAD=$(echo $PAYLOAD | sed 's/__DEPLOYMENTS_LASTUPDATED__/${{ steps.get_issues.outputs.DATE }}/g')
PAYLOAD=$(echo $PAYLOAD | sed 's/__DEPLOYMENTS_ENVIRONMENT_ID__/Production/g')
PAYLOAD=$(echo $PAYLOAD | sed 's/__DEPLOYMENTS_ENVIRONMENT_DISPLAYNAME__/Production/g')
Expand Down

0 comments on commit ba8d887

Please sign in to comment.