Skip to content

Commit f5cbfff

Browse files
authored
ci: trigger helm-charts update-app-version workflow after release (#925)
1 parent 93e36b5 commit f5cbfff

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,37 @@ jobs:
9494
needs.check_changesets.outputs.changeset_outputs_hasChangesets ==
9595
'false'
9696
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
99128
needs: [check_changesets, release]
100129
runs-on: ubuntu-24.04
101130
if:
@@ -112,8 +141,9 @@ jobs:
112141
app-id: ${{ secrets.DOWNSTREAM_CH_APP_ID }}
113142
private-key: ${{ secrets.DOWNSTREAM_CH_APP_PRIVATE_KEY }}
114143
owner: ${{ secrets.DOWNSTREAM_CH_OWNER }}
115-
- name: Notify Downstream
144+
- name: Notify CH Downstream
116145
uses: actions/github-script@v7
146+
continue-on-error: true
117147
env:
118148
TAG: ${{ env.IMAGE_VERSION }}${{ env.IMAGE_VERSION_SUB_TAG }}
119149
with:

0 commit comments

Comments
 (0)