Skip to content

Commit

Permalink
chore: add gh job that reports successful release
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Sep 14, 2023
1 parent 3fbcee7 commit 29530ae
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/dhis2-verify-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,25 @@ jobs:
slack-message: ':small_red_triangle_down: :dashboard-app: Dashboard-app release <https://github.com/dhis2/dashboard-app/actions/workflows/dhis2-verify-app.yml?query=branch%3Amaster+is%3Afailure>'
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/[email protected]
with:
path: package.json

- name: Send success message to analytics-internal-bot slack channel
id: slack
uses: slackapi/[email protected]
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
slack-message: format(':large_green_circle: :maps-app: :tada: Maps-app {0} released <https://github.com/dhis2/maps-app/actions/workflows/dhis2-verify-app.yml?query=branch%3Amaster+is%3Asuccess>', ${{ steps.package-version.outputs.current-version}})
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 29530ae

Please sign in to comment.