Skip to content

Commit 9ffc5f8

Browse files
authored
Trigger Operator Sync PR on release (#4413)
1 parent 50b0d0c commit 9ffc5f8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,3 +446,24 @@ jobs:
446446
commit -m "NGINX Ingress Controller - Release ${{ needs.checks.outputs.chart_version }}"
447447
git push -u origin master
448448
if: github.ref_type == 'tag'
449+
450+
operator:
451+
name: Trigger PR for Operator
452+
runs-on: ubuntu-22.04
453+
needs: [checks, publish-helm]
454+
steps:
455+
- name:
456+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
457+
with:
458+
github-token: ${{ secrets.NGINX_PAT }}
459+
script: |
460+
await github.rest.actions.createWorkflowDispatch({
461+
owner: context.repo.owner,
462+
repo: 'nginx-ingress-helm-operator',
463+
workflow_id: 'sync-chart.yml',
464+
ref: 'main',
465+
inputs: {
466+
chart_version: '${{ needs.checks.outputs.chart_version }}'
467+
},
468+
})
469+
if: github.ref_type == 'tag'

0 commit comments

Comments
 (0)