diff --git a/.github/workflows/dhis2-verify-app.yml b/.github/workflows/dhis2-verify-app.yml index d650fe898..21a43fe91 100644 --- a/.github/workflows/dhis2-verify-app.yml +++ b/.github/workflows/dhis2-verify-app.yml @@ -171,3 +171,25 @@ jobs: slack-message: ':small_red_triangle_down: :dashboard-app: Dashboard-app release ' env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + + report-release-success: + runs-on: ubuntu-latest + needs: test + if: | + success() && + !cancelled() + steps: + - name: get-npm-version + id: package-version + uses: martinbeentjes/npm-get-version-action@v1.3.1 + with: + path: package.json + + - name: Send success message to analytics-internal-bot slack channel + id: slack + uses: slackapi/slack-github-action@v1.23.0 + with: + channel-id: ${{ secrets.SLACK_CHANNEL_ID }} + slack-message: format(':large_green_circle: :maps-app: :tada: Maps-app {0} released ', ${{ steps.package-version.outputs.current-version}}) + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}