You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
name: Markdown
|
|
|
|
on:
|
|
repository_dispatch:
|
|
workflow_dispatch:
|
|
schedule:
|
|
# Everyday at 9:00 AM.
|
|
- cron: "0 9 * * *"
|
|
|
|
# Declare default permissions as read only.
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
lint-markdown:
|
|
permissions:
|
|
issues: write # required for creating issues from markdown lint reports
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
|
|
- name: Run linter
|
|
id: markdownlint
|
|
uses: docker://avtodev/markdown-lint:v1@sha256:6aeedc2f49138ce7a1cd0adffc1b1c0321b841dc2102408967d9301c031949ee
|
|
with:
|
|
config: .markdownlint.yaml
|
|
args: '**/*.md'
|
|
output: ./markdownlint.txt
|
|
|
|
- name: Create Issue From File
|
|
if: steps.markdownlint.outputs.exit_code != 0
|
|
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5.0.1
|
|
with:
|
|
title: Markdown Lint Report
|
|
content-filepath: ./markdownlint.txt
|
|
labels: report, bot-generated
|