Skip to content

Commit 3a0facc

Browse files
Add new notify step in release pipeline (AST-000)
1 parent 5b84a1e commit 3a0facc

File tree

1 file changed

+6
-26
lines changed

1 file changed

+6
-26
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -144,33 +144,13 @@ jobs:
144144
notify:
145145
runs-on: ubuntu-latest
146146
if: inputs.dev == false
147-
needs: build
148147
steps:
149-
- name: Get latest release notes
150-
id: release
151-
env:
152-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
153-
run: |
154-
body_release="$(gh api -H "Accept: application/vnd.github.v3+json" /repos/Checkmarx/ast-cli/releases/latest | jq -r '.body' )"
155-
body_release="${body_release//$'\n'/'%0A'}"
156-
echo "::set-output name=body_release::$body_release"
157-
158-
- name: Converts Markdown to HTML
159-
id: convert
160-
uses: lifepal/markdown-to-html@71ed74a56602597c05dd7dd0e561631557158ed5 #v1.1
161-
with:
162-
text: "${{ steps.release.outputs.body_release }}"
163-
164-
- name: Clean html
165-
id: clean
166-
run: |
167-
clean="$(echo "${{ steps.convert.outputs.html }}" | awk '{gsub(/id=.[a-z]+/,"");print}' | tr -d '\n')"
168-
echo "$clean"
169-
echo "::set-output name=clean::$clean"
170-
171148
- name: Send a Notification
172149
id: notify
173-
uses: thechetantalwar/teams-notify@8a78811f5e8f58cdd204efebd79158006428c46b #v2
150+
uses: Checkmarx/plugins-release-workflow/.github/workflows/release-notify.yml@main
174151
with:
175-
teams_webhook_url: ${{ secrets.TEAMS_WEBHOOK_URI }}
176-
message: "${{ steps.clean.outputs.clean }}"
152+
product_name: CLI
153+
release_version: ${{ inputs.tag }}
154+
cli_release_version: ""
155+
release_author: "Phoenix Team"
156+
release_url: https://github.com/Checkmarx/ast-cli/releases/tag/${{ inputs.tag }}

0 commit comments

Comments
 (0)