File tree Expand file tree Collapse file tree 1 file changed +32
-1
lines changed
Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change 2222 plugin-version-suffix : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || '' }}
2323
2424 publish-latest-to-catalog :
25- name : Publish ` main` to Dev Catalog
25+ name : Publish main to Dev Catalog
2626 if : github.ref == 'refs/heads/main'
2727 uses : grafana/plugin-ci-workflows/.github/workflows/cd.yml@ci-cd-workflows/v5.1.0
2828 permissions :
3838 plugin-version-suffix : ${{ github.sha }}
3939 run-playwright : false
4040 scopes : grafana_cloud_instance_datasourcese2e
41+
42+ trigger-argo-workflow :
43+ name : Trigger Argo Workflow
44+ runs-on : ubuntu-24.04
45+ if : github.ref == 'refs/heads/main'
46+ needs : publish-latest-to-catalog
47+ permissions :
48+ contents : read
49+ id-token : write
50+ steps :
51+ - uses : actions/checkout@v6
52+ with :
53+ persist-credentials : false
54+ - name : Read plugin ID
55+ id : plugin-id
56+ run : |
57+ echo "PLUGIN_ID=$(jq -r .id < ./src/plugin.json)" >> $GITHUB_OUTPUT
58+ - name : Read package version
59+ id : package-version
60+ run : |
61+ echo "PACKAGE_VERSION=$(jq -r .version < ./package.json)" >> $GITHUB_OUTPUT
62+ - name : Trigger workflow
63+ uses : grafana/shared-workflows/actions/trigger-argo-workflow@d29b9161f1803baed4a7305c85cb5a3018bc3c3e # trigger-argo-workflow/v1.2.1
64+ with :
65+ instance : dev
66+ namespace : grafana-datasources-cd
67+ workflow_template : ${{ steps.plugin-id.outputs.PLUGIN_ID }}
68+ parameters : |
69+ dockertag=${{ steps.package-version.outputs.PACKAGE_VERSION }}-${{ github.sha }}
70+ prCommentContext='triggered by push to main on datasource: ${{ steps.plugin-id.outputs.PLUGIN_ID }}'
71+ commit_author="grafana-delivery-bot"
You can’t perform that action at this time.
0 commit comments