Automatically trigger Helmchart PR on agent release. (#11084)
* Automatically trigger Helmchart PR on agent release. This will automatically trigger the workflow in the netdata/helmchart repo that generates a PR to bump the agent version bundled with the helmchart when we bpulish a docker image for a release. * Add missing `uses` key in action step. * Properly quote JSON data.
Austin S. Hemmelgarn committed
May 10, 2021 at 07:05 UTC
695342fc7a27a517e25900e2c6e9602a3131c53c
1 file changed
+9
.github/workflows/docker.yml
+9
@@ -67,3 +67,12 @@ jobs:
67
&& github.event_name != 'pull_request'
68
&& startsWith(github.ref, 'refs/heads/master')
69
}}
70
+ - name: Trigger Helmchart PR
71
+ if: github.event_name == 'workflow_dispatch' && github.event.inputs.version != 'nightly'
72
+ uses: benc-uk/workflow-dispatch@v1
73
+ with:
74
+ token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
75
+ repo: netdata/helmchart
76
+ workflow: Agent Version PR
77
+ ref: refs/heads/master
78
+ inputs: '{"agent_version": "${{ github.event.inputs.version }}"}'