mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
Update workflow that synchronizes the make docs
procedure (#77123)
* Update workflow that synchronizes the `make docs` procedure Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Update .github/workflows/update-make-docs.yml * Only try and commit, push, and open a PR if there are changes Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
This commit is contained in:
parent
384f5ccdc6
commit
8b43d1b1ab
13
.github/workflows/update-make-docs.yml
vendored
13
.github/workflows/update-make-docs.yml
vendored
@ -12,16 +12,21 @@ jobs:
|
||||
|
||||
- name: Update procedure
|
||||
run: |
|
||||
BRANCH=update-make-docs
|
||||
git checkout -b "${BRANCH}"
|
||||
curl -s -Lo docs/docs.mk https://raw.githubusercontent.com/grafana/writers-toolkit/main/docs/docs.mk
|
||||
curl -s -Lo docs/make-docs https://raw.githubusercontent.com/grafana/writers-toolkit/main/docs/make-docs
|
||||
if git diff --exit-code; then exit 0; fi
|
||||
BRANCH="$(date +%Y-%m-%d)/update-make-docs"
|
||||
git checkout -b "${BRANCH}"
|
||||
git add .
|
||||
git config --local user.email "bot@grafana.com"
|
||||
git config --local user.name "grafanabot"
|
||||
git commit -m "Update \`make docs\` procedure"
|
||||
git commit --message "Update \`make docs\` procedure"
|
||||
git push -v origin "refs/heads/${BRANCH}"
|
||||
gh pr create --fill --label no-changelog --label --no-backport --label type/docs
|
||||
gh pr create --fill \
|
||||
--label 'backport v10.0.x' \
|
||||
--label 'backport v10.1.x' \
|
||||
--label 'backport v10.2.x' \
|
||||
--label no-changelog \
|
||||
--label type/docs || true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Loading…
Reference in New Issue
Block a user