Docs: Sync docs with website repo via GitHub Action (#20694)

* add GitHub action to sync docs with website repo

* remove trigger-docs-update from circleci jobs

* update access token
This commit is contained in:
Robby Milo
2019-12-04 14:36:50 +01:00
committed by Torkel Ödegaard
parent 7a710737ae
commit c43aa3485c
7 changed files with 277 additions and 29 deletions

View File

@@ -959,35 +959,6 @@ jobs:
- store_artifacts:
path: ./dist
trigger-docs-update:
docker:
- image: circleci/python:3.6.8
steps:
- checkout
- run:
name: ci job started
command: './scripts/ci-job-started.sh'
- 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/master \
| jq .build_url
else
echo "-- no changes to docs files --"
fi
- run:
name: ci job failed
command: './scripts/ci-job-failed.sh'
when: on_fail
- run:
name: ci job succeeded
command: './scripts/ci-job-succeeded.sh'
when: on_success
build-grafana-packages:
docker:
- image: circleci/node:12