mirror of
https://github.com/grafana/grafana.git
synced 2024-12-30 10:47:30 -06:00
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
This commit is contained in:
parent
c09fe3c3b4
commit
4121b5da6b
@ -605,6 +605,24 @@ jobs:
|
||||
- store_artifacts:
|
||||
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:
|
||||
version: 2
|
||||
build-master:
|
||||
@ -672,6 +690,10 @@ workflows:
|
||||
requires:
|
||||
- grafana-docker-master
|
||||
filters: *filter-only-master
|
||||
- trigger-docs-update:
|
||||
requires:
|
||||
- end-to-end-test
|
||||
filters: *filter-only-master
|
||||
release:
|
||||
jobs:
|
||||
- build-all:
|
||||
|
Loading…
Reference in New Issue
Block a user