mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-26 21:05:00 +02:00
77d6237575
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
35 lines
892 B
YAML
35 lines
892 B
YAML
name: Markdown (Fail Fast)
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
changedfiles:
|
|
name: changed files
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
md: ${{ steps.changes.outputs.md }}
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Get changed files
|
|
id: changes
|
|
run: |
|
|
echo "md=$(git diff --name-only --diff-filter=ACMRTUXB origin/${{ github.event.pull_request.base.ref }} ${{ github.event.pull_request.head.sha }} | grep .md$ | xargs)" >> $GITHUB_OUTPUT
|
|
|
|
lint:
|
|
name: lint markdown files
|
|
runs-on: ubuntu-latest
|
|
needs: changedfiles
|
|
if: ${{needs.changedfiles.outputs.md}}
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v4
|
|
- name: Run linter
|
|
uses: docker://avtodev/markdown-lint:v1
|
|
with:
|
|
args: ${{needs.changedfiles.outputs.md}}
|