Commit 4121b5da by Alexandre de Verteuil Committed by Torkel Ödegaard

Docs: Add CircleCI step trigger-docs-update (#17481)

* Add CircleCI step trigger-docs-update

* Check changes to docs/* in CI/CD job trigger-docs-update
parent c09fe3c3
...@@ -605,6 +605,24 @@ jobs: ...@@ -605,6 +605,24 @@ jobs:
- store_artifacts: - store_artifacts:
path: ./dist path: ./dist
trigger-docs-update:
docker:
- image: circleci/python:3.6.8
steps:
- checkout
- run:
name: Trigger Docs update
command: |
if git diff --name-only HEAD^ | grep -q "^docs"; then
echo "Build URL:"
curl -s -u "$DOCS_CIRCLE_TOKEN:" \
-d build_parameters[CIRCLE_JOB]=pull-submodule-changes \
https://circleci.com/api/v1.1/project/github/grafana/docs.grafana.com/tree/staging \
| jq .build_url
else
echo "-- no changes to docs files --"
fi
workflows: workflows:
version: 2 version: 2
build-master: build-master:
...@@ -672,6 +690,10 @@ workflows: ...@@ -672,6 +690,10 @@ workflows:
requires: requires:
- grafana-docker-master - grafana-docker-master
filters: *filter-only-master filters: *filter-only-master
- trigger-docs-update:
requires:
- end-to-end-test
filters: *filter-only-master
release: release:
jobs: jobs:
- build-all: - build-all:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment