-
Notifications
You must be signed in to change notification settings - Fork 6
122 lines (122 loc) · 5 KB
/
regenerate-tutorials.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: Regenerate tutorials
on:
schedule:
- cron: '0 7 * * 1-5'
workflow_dispatch:
jobs:
main:
if: github.repository == 'grafana/killercoda'
runs-on: ubuntu-latest
steps:
# Check out all the repositories that contain documentation sources from which we generate tutorials.
- uses: actions/checkout@v4
with:
repository: grafana/loki
path: loki
- uses: actions/checkout@v4
with:
repository: grafana/grafana
path: grafana
- uses: actions/checkout@v4
with:
repository: grafana/alloy
path: alloy
- uses: actions/checkout@v4
with:
repository: grafana/tempo
path: tempo
- uses: actions/checkout@v4
with:
repository: grafana/mimir
path: mimir
- uses: actions/checkout@v4
with:
repository: grafana/pyroscope
path: pyroscope
- uses: actions/checkout@v4
with:
path: killercoda
- uses: actions/setup-go@v5
with:
go-version-file: killercoda/tools/transformer/go.mod
- run: go build ./
working-directory: killercoda/tools/transformer
- run: ./scripts/check-out-branch.bash
shell: bash
working-directory: killercoda
# Run the transformer on all documentation sources.
- run: >
./transformer
"${GITHUB_WORKSPACE}/loki/docs/sources/get-started/quick-start.md"
"${GITHUB_WORKSPACE}/killercoda/loki/loki-quickstart"
working-directory: killercoda/tools/transformer
- run: >
./transformer
"${GITHUB_WORKSPACE}/loki/docs/sources/send-data/alloy/examples/alloy-kafka-logs.md"
"${GITHUB_WORKSPACE}/killercoda/loki/alloy-kafka-logs"
working-directory: killercoda/tools/transformer
- run: >
./transformer
"${GITHUB_WORKSPACE}/loki/docs/sources/send-data/alloy/examples/alloy-otel-logs.md"
"${GITHUB_WORKSPACE}/killercoda/loki/alloy-otel-logs"
working-directory: killercoda/tools/transformer
- run: >
./transformer
"${GITHUB_WORKSPACE}/loki/docs/sources/send-data/otel/otel-collector-getting-started.md"
"${GITHUB_WORKSPACE}/killercoda/loki/otel-collector-getting-started"
working-directory: killercoda/tools/transformer
- run: >
./transformer
"${GITHUB_WORKSPACE}/loki/docs/sources/send-data/fluentbit/fluent-bit-loki-tutorial.md"
"${GITHUB_WORKSPACE}/killercoda/loki/fluentbit-loki-tutorial"
working-directory: killercoda/tools/transformer
- run: >
./transformer
"${GITHUB_WORKSPACE}/loki/docs/sources/query/logcli/logcli-tutorial.md"
"${GITHUB_WORKSPACE}/killercoda/loki/logcli-tutorial"
working-directory: killercoda/tools/transformer
- run: >
./transformer
"${GITHUB_WORKSPACE}/grafana/docs/sources/tutorials/alerting-get-started/index.md"
"${GITHUB_WORKSPACE}/killercoda/grafana/alerting-get-started"
working-directory: killercoda/tools/transformer
- run: >
./transformer
"${GITHUB_WORKSPACE}/alloy/docs/sources/tutorials/send-logs-to-loki.md"
"${GITHUB_WORKSPACE}/killercoda/alloy/send-logs-to-loki"
working-directory: killercoda/tools/transformer
- run: >
./transformer
"${GITHUB_WORKSPACE}/grafana/docs/sources/tutorials/grafana-fundamentals/index.md"
"${GITHUB_WORKSPACE}/killercoda/grafana/grafana-fundamentals"
working-directory: killercoda/tools/transformer
- run: >
./transformer
"${GITHUB_WORKSPACE}/grafana/docs/sources/tutorials/create-alerts-with-logs/index.md"
"${GITHUB_WORKSPACE}/killercoda/grafana/alerting-loki-logs"
working-directory: killercoda/tools/transformer
- run: >
./transformer
"${GITHUB_WORKSPACE}/alloy/docs/sources/tutorials/send-metrics-to-prometheus.md"
"${GITHUB_WORKSPACE}/killercoda/alloy/send-metrics-to-prometheus"
working-directory: killercoda/tools/transformer
- run: >
./transformer
"${GITHUB_WORKSPACE}/tempo/docs/sources/tempo/getting-started/docker-example.md"
"${GITHUB_WORKSPACE}/killercoda/tempo/quick-start"
working-directory: killercoda/tools/transformer
- run: >
./transformer
"${GITHUB_WORKSPACE}/mimir/docs/sources/mimir/get-started/play-with-grafana-mimir/index.md"
"${GITHUB_WORKSPACE}/killercoda/mimir/play-with-mimir"
working-directory: killercoda/tools/transformer
- run: >
./transformer
"${GITHUB_WORKSPACE}/pyroscope/docs/sources/get-started/ride-share-tutorial.md"
"${GITHUB_WORKSPACE}/killercoda/pyroscope/ride-share-tutorial"
working-directory: killercoda/tools/transformer
- run: ./scripts/manage-pr.bash
env:
GH_TOKEN: ${{ github.token }}
shell: bash
working-directory: killercoda