File tree Expand file tree Collapse file tree 2 files changed +5
-20
lines changed Expand file tree Collapse file tree 2 files changed +5
-20
lines changed Original file line number Diff line number Diff line change @@ -2,26 +2,11 @@ name: Update `make docs` procedure
2
2
on :
3
3
schedule :
4
4
- cron : ' 0 7 * * 1-5'
5
+ workflow_dispatch :
5
6
jobs :
6
7
main :
8
+ if : github.repository == 'grafana/agent'
7
9
runs-on : ubuntu-latest
8
10
steps :
9
- - name : Checkout repository
10
- uses : actions/checkout@v4
11
-
12
- - name : Update procedure
13
- if : github.repository != 'grafana/writers-toolkit'
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 || 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
Original file line number Diff line number Diff line change 38
38
#
39
39
# - Imperfect implementation of container name.
40
40
#
41
- # Faciliates running `make vale` and `make docs` at once.
41
+ # Facilitates running `make vale` and `make docs` at once.
42
42
# Container names are convenient for recognition in `docker ps` but the current implementation has more downsides than upsides.
43
43
#
44
44
# - Forced platform specification now that multiple architecture images exist.
You can’t perform that action at this time.
0 commit comments