-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
make docs
procedure and ensure that it is regularly updated …
…in future. (#4450) * Add myself as CODEOWNER of `make docs` and related files via @grafana/tooling team Signed-off-by: Jack Baldry <[email protected]> * Add workflow to automatically update `make docs` procedure daily Signed-off-by: Jack Baldry <[email protected]> * Update `make docs` procedure Signed-off-by: Jack Baldry <[email protected]> --------- Signed-off-by: Jack Baldry <[email protected]>
- Loading branch information
1 parent
f3a812f
commit 9658607
Showing
5 changed files
with
86 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Update `make docs` procedure | ||
on: | ||
schedule: | ||
- cron: '0 7 * * 1-5' | ||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- 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 | ||
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 "[email protected]" | ||
git config --local user.name "grafanabot" | ||
git commit -m "Update \`make docs\` procedure" | ||
git push -v origin "refs/heads/${BRANCH}" | ||
gh pr create --fill | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
# List of projects to provide to the make-docs script. | ||
PROJECTS = agent | ||
# Format is PROJECT[:[VERSION][:[REPOSITORY][:[DIRECTORY]]]] | ||
# The following PROJECTS value mounts content into the agent project, at the "latest" version, which is the default if not explicitly set. | ||
# This results in the content being served at /docs/agent/latest/. | ||
# The source of the content is the current repository which is determined by the name of the parent directory of the git root. | ||
# This overrides the default behavior of assuming the repository directory is the same as the project name. | ||
PROJECTS := agent::$(notdir $(basename $(shell git rev-parse --show-toplevel))) |