File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 73
73
AZURE_CREDENTIALS : ${{secrets.AZURE_CREDENTIALS_DOCS}}
74
74
AZURE_KEY_VAULT : ${{secrets.AZURE_KEY_VAULT_DOCS}}
75
75
76
+ trigger-theme-slack-notification :
77
+ if : github.event_name == 'repository_dispatch'
78
+ needs : call-docs-build-push
79
+ runs-on : ubuntu-latest
80
+ steps :
81
+ - name : Trigger 'Slack notification for new theme release' workflow in 'nginx-hugo-theme' repo.
82
+ run : |
83
+ curl -L \
84
+ -X POST \
85
+ -H "Accept: application/vnd.github+json" \
86
+ -H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
87
+ -H "X-GitHub-Api-Version: 2022-11-28" \
88
+ "https://api.github.com/repos/nginxinc/nginx-hugo-theme/dispatches" \
89
+ -d "{"event_type": "trigger-slack-notification", "client_payload": {"previewURL": "${{PREVIEW_URL}}"}}"
90
+ env :
91
+ PREVIEW_URL : ${{ needs.call-docs-build-push.outputs.PREVIEW_URL }}
92
+
93
+
76
94
lighthouseci :
77
95
if : github.event.pull_request
78
96
needs : call-docs-build-push
You can’t perform that action at this time.
0 commit comments