Update make docs procedure (#76096)

* Update `make docs` procedure

* Do not run workflow on forks

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Add labels

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: grafanabot <bot@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
This commit is contained in:
github-actions[bot]
2023-10-06 09:47:55 +01:00
committed by GitHub
co-authored by grafanabot Jack Baldry
parent 68a027993c
commit fb0ac351bc
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -4,13 +4,13 @@ on:
- cron: '0 7 * * 1-5'
jobs:
main:
if: github.repository == 'grafana/grafana'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update procedure
if: github.repository != 'grafana/writers-toolkit'
run: |
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
@@ -22,6 +22,6 @@ jobs:
git config --local user.name "grafanabot"
git commit -m "Update \`make docs\` procedure"
git push -v origin "refs/heads/${BRANCH}"
gh pr create --fill
gh pr create --fill --label no-changelog --label --no-backport --label type/docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}