Skip to content

Commit f5e733f

Browse files
committed
Use versioned action to update make-docs procedure
https://github.com/grafana/writers-toolkit/blob/main/update-make-docs/action.yml Signed-off-by: Jack Baldry <[email protected]>
1 parent a7b7680 commit f5e733f

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

.github/workflows/update-make-docs.yml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,15 @@ name: Update `make docs` procedure
22
on:
33
schedule:
44
- cron: '0 7 * * 1-5'
5+
workflow_dispatch:
56
jobs:
67
main:
78
if: github.repository == 'grafana/k6-docs'
89
runs-on: ubuntu-latest
910
steps:
10-
- name: Checkout repository
11-
uses: actions/checkout@v4
12-
13-
- name: Update procedure
14-
run: |
15-
BRANCH="update-make-docs"
16-
git checkout -b "${BRANCH}"
17-
curl -s -Lo docs/docs.mk https://raw.githubusercontent.com/grafana/writers-toolkit/main/docs/docs.mk
18-
curl -s -Lo docs/make-docs https://raw.githubusercontent.com/grafana/writers-toolkit/main/docs/make-docs
19-
if git diff --exit-code; then exit 0; fi
20-
git add .
21-
git config --local user.email "[email protected]"
22-
git config --local user.name "grafanabot"
23-
git commit -m "Update \`make docs\` procedure"
24-
git push -v origin "refs/heads/${BRANCH}"
25-
gh pr create --fill --label type/docs || true
26-
env:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11+
- uses: actions/checkout@v4
12+
- uses: grafana/writers-toolkit/update-make-docs@update-make-docs/v1
13+
with:
14+
pr_options: >
15+
--label type/docs
16+
trace: true

0 commit comments

Comments
 (0)