-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (49 loc) · 1.49 KB
/
releasedrumbrella.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Release chart Datarepo chart
on:
workflow_dispatch: {}
push:
branches:
- master
paths:
- '!charts/**'
- '!.github/**'
- '!README.md'
- 'charts/datarepo/**'
jobs:
release_new_umbrella_dr:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: true
token: ${{ secrets.BROADBOT_TOKEN }}
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
release_umbrella_helm_charts:
needs: release_new_umbrella_dr
uses: ./.github/workflows/chart-releaser.yaml
secrets: inherit
integration_chart_promotion:
needs: release_new_umbrella_dr
uses: ./.github/workflows/integrationChartBump.yaml
secrets: inherit
notify_slack:
needs:
- release_new_umbrella_dr
- release_umbrella_helm_charts
- integration_chart_promotion
runs-on: ubuntu-latest
if: always()
steps:
- name: "Notify Slack"
uses: broadinstitute/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
MATRIX_CONTEXT: ${{ toJson(matrix) }} # required to work with job field
with:
status: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
fields: job,repo,message
channel: "#jade-spam"
username: "datarepo-helm actions"
text: "Release Datarepo Chart"