94
94
needs.check_changesets.outputs.changeset_outputs_hasChangesets ==
95
95
' false'
96
96
run : make ${{ matrix.release }}
97
- notify_downstream :
98
- name : Notify Downstream
97
+ notify_helm_charts :
98
+ name : Notify Helm-Charts Downstream
99
+ needs : [check_changesets, release]
100
+ runs-on : ubuntu-24.04
101
+ if :
102
+ needs.check_changesets.outputs.changeset_outputs_hasChangesets == 'false'
103
+ steps :
104
+ - name : Checkout
105
+ uses : actions/checkout@v4
106
+ - name : Load Environment Variables from .env
107
+ uses : xom9ikk/dotenv@v2
108
+ - name : Notify Helm-Charts Downstream
109
+ uses : actions/github-script@v7
110
+ continue-on-error : true
111
+ env :
112
+ TAG : ${{ env.IMAGE_VERSION }}${{ env.IMAGE_VERSION_SUB_TAG }}
113
+ with :
114
+ github-token : ${{ secrets.GITHUB_TOKEN }}
115
+ script : |
116
+ const { TAG } = process.env;
117
+ const result = await github.rest.actions.createWorkflowDispatch({
118
+ owner: 'hyperdxio',
119
+ repo: 'helm-charts',
120
+ workflow_id: '${{ secrets.DOWNSTREAM_HC_WORKFLOW_ID }}',
121
+ ref: 'main',
122
+ inputs: {
123
+ tag: TAG
124
+ }
125
+ });
126
+ notify_ch :
127
+ name : Notify CH Downstream
99
128
needs : [check_changesets, release]
100
129
runs-on : ubuntu-24.04
101
130
if :
@@ -112,8 +141,9 @@ jobs:
112
141
app-id : ${{ secrets.DOWNSTREAM_CH_APP_ID }}
113
142
private-key : ${{ secrets.DOWNSTREAM_CH_APP_PRIVATE_KEY }}
114
143
owner : ${{ secrets.DOWNSTREAM_CH_OWNER }}
115
- - name : Notify Downstream
144
+ - name : Notify CH Downstream
116
145
uses : actions/github-script@v7
146
+ continue-on-error : true
117
147
env :
118
148
TAG : ${{ env.IMAGE_VERSION }}${{ env.IMAGE_VERSION_SUB_TAG }}
119
149
with :
0 commit comments