Use versioned action to update `make-docs` procedure (#77694)

https://github.com/grafana/writers-toolkit/blob/main/update-make-docs/action.yml

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
pull/77708/head
Jack Baldry 2 years ago committed by GitHub
parent d1e52d4788
commit 20b4cebc47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 33
      .github/workflows/update-make-docs.yml

@ -2,31 +2,18 @@ name: Update `make docs` procedure
on: on:
schedule: schedule:
- cron: '0 7 * * 1-5' - cron: '0 7 * * 1-5'
workflow_dispatch:
jobs: jobs:
main: main:
if: github.repository == 'grafana/grafana' if: github.repository == 'grafana/grafana'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - uses: actions/checkout@v4
uses: actions/checkout@v4 - uses: grafana/writers-toolkit/update-make-docs@update-make-docs/v1
with:
- name: Update procedure pr_options: >
run: | --label 'backport v10.0.x'
BRANCH=update-make-docs --label 'backport v10.1.x'
git checkout -b "${BRANCH}" --label 'backport v10.2.x'
curl -s -Lo docs/docs.mk https://raw.githubusercontent.com/grafana/writers-toolkit/main/docs/docs.mk --label no-changelog
curl -s -Lo docs/make-docs https://raw.githubusercontent.com/grafana/writers-toolkit/main/docs/make-docs --label type/docs
if git diff --exit-code; then exit 0; fi
git add .
git config --local user.email "bot@grafana.com"
git config --local user.name "grafanabot"
git commit --message "Update \`make docs\` procedure"
git push -v origin "refs/heads/${BRANCH}"
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…
Cancel
Save