diff --git a/.github/workflows/deploy-docker-to-tst.yml b/.github/workflows/deploy-docker-to-tst.yml index 7fc7ca0..9974ff6 100644 --- a/.github/workflows/deploy-docker-to-tst.yml +++ b/.github/workflows/deploy-docker-to-tst.yml @@ -26,7 +26,6 @@ jobs: path: version.txt - name: Notify Mattermost via Bot env: - VERSION: ${{ env.VERSION }} REPO: ${{ gitea.repository }} BRANCH: ${{ gitea.ref }} MATTERMOST_BOT_TOKEN: ${{ secrets.MATTERMOST_BOT_TOKEN }} @@ -35,7 +34,7 @@ jobs: -H 'Content-Type: application/json' \ -d '{ "channel_id": "9a8obynkd7rctk6qf8rfe6oppy", - "message": "@all 🚀 *Build gestart!* Een nieuwe build ['"$VERSION"'-SNAPSHOT] is begonnen voor de repository *'"$REPO"'* op branch *'"$BRANCH"'*." + "message": "@all 🚀 *Build gestart!* Een nieuwe build is begonnen voor de repository *'"$REPO"'* op branch *'"$BRANCH"'*." }' \ https://mattermost.melvanveen.nl/api/v4/posts @@ -103,10 +102,12 @@ jobs: env: VERSION: ${{ env.VERSION }} run: | + COMMITS=$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"- %s") curl --fail -X POST -H "Authorization: Bearer tspcwdn5rbdk8kkmnex6h1nfha" \ -H 'Content-Type: application/json' \ -d '{ "channel_id": "9a8obynkd7rctk6qf8rfe6oppy", - "message": "@all ✅ *Build is geslaagd!* Versie '"$VERSION"'-SNAPSHOT staat klaar op https://test-paypoint.melvanveen.nl" + "message": "@all ✅ *Build is geslaagd!* Versie '"$VERSION"'-SNAPSHOT staat klaar op https://test-paypoint.melvanveen.nl\n\n*Changelog:*\n'"${COMMITS}"'" }' \ https://mattermost.melvanveen.nl/api/v4/posts +