Skip to content

Commit

Permalink
ci(all): Test format mattermost notification
Browse files Browse the repository at this point in the history
  • Loading branch information
vvatelot committed Mar 1, 2024
1 parent a7066bc commit 2c59454
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build_publish_compute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ jobs:
echo "### Pypi package" >> /tmp/changelog.md
echo "" >> /tmp/changelog.md
echo "Pypi package have been built and pushed to Pypi: [ecoindex-compute:${{ needs.python_project.outputs.compute_version }}](https://pypi.org/project/ecoindex-compute/${{ needs.python_project.outputs.compute_version }}/)" >> /tmp/changelog.md
echo "{\"props\":{\"card\":\"$(cat /tmp/changelog.md)\"},\"text\":\"### [Compute] Nouvelle release: v${{ needs.python_project.outputs.compute_version }}\"}" > mattermost.json
echo "{\"icon_emoji\":\":tada:\",\"props\":{\"card\":\"$(cat /tmp/changelog.md)\"},\"text\":\"### [Compute] Nouvelle release: v${{ needs.python_project.outputs.compute_version }}\"}" > mattermost.json
- name: Create Release
uses: ncipollo/release-action@v1
Expand All @@ -199,6 +199,5 @@ jobs:

- name: Notify to Mattermost
# if: ${{ !env.PRERELEASE }}
uses: mattermost/action-mattermost-notify@master
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_RELEASE_URL }}
run: |
curl -X POST -H 'Content-Type: application/json' -d @mattermost.json ${{ secrets.MATTERMOST_WEBHOOK_URL }}

0 comments on commit 2c59454

Please sign in to comment.