From cceae616461041aec83775cf79159c390e619b7a Mon Sep 17 00:00:00 2001 From: Vincent Vatelot Date: Fri, 30 Aug 2024 15:27:38 +0200 Subject: [PATCH] ci: Fix Mattermost release message --- .github/workflows/build_publish_api.yml | 2 +- .github/workflows/build_publish_cli.yml | 4 ++-- .github/workflows/build_publish_compute.yml | 2 +- .github/workflows/build_publish_scraper.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_publish_api.yml b/.github/workflows/build_publish_api.yml index fd219fc..ce98aac 100644 --- a/.github/workflows/build_publish_api.yml +++ b/.github/workflows/build_publish_api.yml @@ -246,5 +246,5 @@ jobs: - name: Notify to Mattermost if: ${{ env.PRERELEASE != 'true' }} run: | - echo -e "{\"icon_url\":\"https://icon-library.com/images/github-icon-png/github-icon-png-29.jpg\",\"text\":\":tada: Une nouvelle release a été publiée pour le projet **${{ github.repository }}: v${{ needs.python_project.outputs.version }}** :tada:\n\nPlus d'infos ici: ${{ steps.create_release.outputs.html_url }}\"}" > mattermost.json + echo -e "{\"icon_url\":\"https://icon-library.com/images/github-icon-png/github-icon-png-29.jpg\",\"text\":\":tada: Une nouvelle release a été publiée pour le projet **${{ github.repository }}: v${{ needs.python_project.outputs.version }}** :tada: \n\nPlus d'infos ici: ${{ steps.create_release.outputs.html_url }}\"}" > mattermost.json curl -X POST -H 'Content-Type: application/json' -d @mattermost.json ${{ secrets.MATTERMOST_RELEASE_URL }} diff --git a/.github/workflows/build_publish_cli.yml b/.github/workflows/build_publish_cli.yml index dea1811..6badbe3 100644 --- a/.github/workflows/build_publish_cli.yml +++ b/.github/workflows/build_publish_cli.yml @@ -226,7 +226,7 @@ jobs: echo "" >> /tmp/changelog.md echo "### Docker image" >> /tmp/changelog.md echo "" >> /tmp/changelog.md - echo "Docker image have been built and pushed to Docker Hub: [vvatelot/ecoindex-api-backend:${{ needs.python_project.outputs.version }}](https://hub.docker.com/r/vvatelot/ecoindex-cli/tags?page=1&name=${{ needs.python_project.outputs.version }})" >> /tmp/changelog.md + echo "Docker image have been built and pushed to Docker Hub: [vvatelot/cli:${{ needs.python_project.outputs.version }}](https://hub.docker.com/r/vvatelot/ecoindex-cli/tags?page=1&name=${{ needs.python_project.outputs.version }})" >> /tmp/changelog.md echo "" >> /tmp/changelog.md echo "### Pypi package" >> /tmp/changelog.md echo "" >> /tmp/changelog.md @@ -247,5 +247,5 @@ jobs: - name: Notify to Mattermost if: ${{ env.PRERELEASE != 'true' }} run: | - echo -e "{\"icon_url\":\"https://icon-library.com/images/github-icon-png/github-icon-png-29.jpg\",\"text\":\":tada: Une nouvelle release a été publiée pour le projet **${{ github.repository }}: v${{ needs.python_project.outputs.version }}** :tada:\n\nPlus d'infos ici: ${{ steps.create_release.outputs.html_url }}\"}" > mattermost.json + echo -e "{\"icon_url\":\"https://icon-library.com/images/github-icon-png/github-icon-png-29.jpg\",\"text\":\":tada: Une nouvelle release a été publiée pour le projet **${{ github.repository }}: v${{ needs.python_project.outputs.version }}** :tada: \n\nPlus d'infos ici: ${{ steps.create_release.outputs.html_url }}\"}" > mattermost.json curl -X POST -H 'Content-Type: application/json' -d @mattermost.json ${{ secrets.MATTERMOST_RELEASE_URL }} diff --git a/.github/workflows/build_publish_compute.yml b/.github/workflows/build_publish_compute.yml index 31fe8bc..e3e46fd 100644 --- a/.github/workflows/build_publish_compute.yml +++ b/.github/workflows/build_publish_compute.yml @@ -200,5 +200,5 @@ jobs: - name: Notify to Mattermost if: ${{ env.PRERELEASE != 'true' }} run: | - echo "{\"icon_url\":\"https://icon-library.com/images/github-icon-png/github-icon-png-29.jpg\",\"text\":\":tada: Une nouvelle release a été publiée pour le projet **${{ github.repository }}: v${{ needs.python_project.outputs.compute_version }}** :tada:\n\nPlus d'infos ici: ${{ steps.create_release.outputs.html_url }}\"}" > mattermost.json + echo "{\"icon_url\":\"https://icon-library.com/images/github-icon-png/github-icon-png-29.jpg\",\"text\":\":tada: Une nouvelle release a été publiée pour le projet **${{ github.repository }}: v${{ needs.python_project.outputs.compute_version }}** :tada: \n\nPlus d'infos ici: ${{ steps.create_release.outputs.html_url }}\"}" > mattermost.json curl -X POST -H 'Content-Type: application/json' -d @mattermost.json ${{ secrets.MATTERMOST_RELEASE_URL }} diff --git a/.github/workflows/build_publish_scraper.yml b/.github/workflows/build_publish_scraper.yml index 94eb3a2..1e3fa76 100644 --- a/.github/workflows/build_publish_scraper.yml +++ b/.github/workflows/build_publish_scraper.yml @@ -200,5 +200,5 @@ jobs: - name: Notify to Mattermost if: ${{ env.PRERELEASE != 'true' }} run: | - echo -e "{\"icon_url\":\"https://icon-library.com/images/github-icon-png/github-icon-png-29.jpg\",\"text\":\":tada: Une nouvelle release a été publiée pour le projet **${{ github.repository }}: v${{ needs.python_project.outputs.version }}** :tada:\n\nPlus d'infos ici: ${{ steps.create_release.outputs.html_url }}\"}" > mattermost.json + echo -e "{\"icon_url\":\"https://icon-library.com/images/github-icon-png/github-icon-png-29.jpg\",\"text\":\":tada: Une nouvelle release a été publiée pour le projet **${{ github.repository }}: v${{ needs.python_project.outputs.version }}** :tada: \n\nPlus d'infos ici: ${{ steps.create_release.outputs.html_url }}\"}" > mattermost.json curl -X POST -H 'Content-Type: application/json' -d @mattermost.json ${{ secrets.MATTERMOST_RELEASE_URL }}