Regenerate tutorials #41
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
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: | |
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}/grafana/docs/sources/tutorials/alerting-get-started/index.md" | |
"${GITHUB_WORKSPACE}/killercoda/grafana/alerting-get-started" | |
working-directory: killercoda/tools/transformer | |
- run: ./scripts/manage-pr.bash | |
env: | |
GH_TOKEN: ${{ github.token }} | |
shell: bash | |
working-directory: killercoda |