From 3559cf47a4ec5f40f31d880311ca0469265de25d Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Thu, 7 Sep 2023 13:57:30 +0200 Subject: [PATCH] chore: try out a successful release message --- .github/workflows/dhis2-verify-app.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dhis2-verify-app.yml b/.github/workflows/dhis2-verify-app.yml index eece8ed89..bc79ca133 100644 --- a/.github/workflows/dhis2-verify-app.yml +++ b/.github/workflows/dhis2-verify-app.yml @@ -137,17 +137,22 @@ jobs: report-release-success: runs-on: ubuntu-latest - needs: release + needs: test if: | success() && - !cancelled() && - github.ref == 'refs/heads/master' + !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: ':large_green_circle: :maps-app: :tada: Maps-app released ' + slack-message: ':large_green_circle: :maps-app: :tada: Maps-app ${{ steps.package-version.outputs.current-version}} released ' env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}