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
d6aef9bb88
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://redirect.github.com/actions/checkout) | action | patch | `v6.0.0` -> `v6.0.1` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>actions/checkout (actions/checkout)</summary> ### [`v6.0.1`](https://redirect.github.com/actions/checkout/compare/v6.0.0...v6.0.1) [Compare Source](https://redirect.github.com/actions/checkout/compare/v6.0.0...v6.0.1) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/open-telemetry/opentelemetry-go). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xOS45IiwidXBkYXRlZEluVmVyIjoiNDIuMTkuOSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiU2tpcCBDaGFuZ2Vsb2ciLCJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
65 lines
1.9 KiB
YAML
65 lines
1.9 KiB
YAML
name: Markdown (Fail Fast)
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "**.md"
|
|
pull_request:
|
|
paths:
|
|
- "**.md"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
changedfiles:
|
|
name: changed files
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
md: ${{ steps.changes.outputs.md }}
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
# Shallow clone, but enough for `git diff HEAD~1 HEAD`.
|
|
fetch-depth: 2
|
|
- name: Get changed files
|
|
id: changes
|
|
env:
|
|
EVENT_NAME: ${{ github.event_name }}
|
|
BASE_SHA: ${{ github.event.pull_request.base.sha || '' }}
|
|
HEAD_SHA: ${{ github.event.pull_request.head.sha || '' }}
|
|
shell: bash
|
|
run: |
|
|
echo "Detecting changed markdown files..."
|
|
|
|
if [[ "$EVENT_NAME" == "pull_request" ]]; then
|
|
echo "Running in pull_request context"
|
|
echo "Base SHA: $BASE_SHA"
|
|
echo "Head SHA: $HEAD_SHA"
|
|
CHANGED=$(git diff --name-only "$BASE_SHA" "$HEAD_SHA" | grep '\.md$' || true)
|
|
elif [[ "$EVENT_NAME" == "push" ]]; then
|
|
echo "Running in push context"
|
|
CHANGED=$(git diff --name-only HEAD~1 HEAD | grep '\.md$' || true)
|
|
else
|
|
echo "Unsupported event type: $EVENT_NAME"
|
|
exit 1
|
|
fi
|
|
|
|
MD=$(echo "$CHANGED" | tr '\n' ' ' | xargs)
|
|
echo "Markdown files changed: $MD"
|
|
echo "md=$MD" >> "$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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
- name: Run linter
|
|
uses: docker://avtodev/markdown-lint:v1@sha256:6aeedc2f49138ce7a1cd0adffc1b1c0321b841dc2102408967d9301c031949ee
|
|
with:
|
|
args: ${{needs.changedfiles.outputs.md}}
|