Skip to content

fix(deps): update dependency io.opentelemetry.instrumentation:opentel… #35

fix(deps): update dependency io.opentelemetry.instrumentation:opentel…

fix(deps): update dependency io.opentelemetry.instrumentation:opentel… #35

---
name: Regenerate API Diff (OTel update)
on:
push:
branches:
- "renovate/otel.instrumentation.version"
permissions: {}
jobs:
generate:
runs-on: ubuntu-26.04
permissions:
contents: read # checkout + read-only `git fetch origin main` for the verify step
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
ref: ${{ github.ref }}
persist-credentials: false
- uses: jdx/mise-action@f5be966e4a917d54244728e6a5fdcd1d93a35e6c # v5.2.6
with:
version: v2026.10.24
sha256: be97dbac1c0b1fe08bd8c0cf01690f4273ea9aa02ad766b98d4e20c43eb9059d
- name: Cache local Maven repository
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Verify OTel instrumentation version was updated
run: |
git fetch origin main
DIFF_POM=$(git diff origin/main -- pom.xml)
if ! echo "$DIFF_POM" | grep -q 'otel.instrumentation.version'; then
echo "::error::otel.instrumentation.version not updated in pom.xml"
exit 1
fi
- name: Regenerate API diff
run: mise run api-diff
- name: Validate and export apidiff changes as a patch
run: |
UNEXPECTED=$(git diff --name-only | grep -v '^docs/apidiffs/' || true)
if [[ -n "$UNEXPECTED" ]]; then
echo "::error::Unexpected files changed:"
echo "$UNEXPECTED"
exit 1
fi
git diff --binary -- docs/apidiffs > /tmp/apidiffs.patch
- name: Upload generated patch
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: apidiffs-patch
path: /tmp/apidiffs.patch
retention-days: 5
publish:
runs-on: ubuntu-26.04
needs: generate
permissions:
contents: write # push regenerated apidiffs back to the renovate branch
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
ref: ${{ github.ref }}
# zizmor: ignore[artipacked] -- needs credentials to push
persist-credentials: true
- name: Download generated patch
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: apidiffs-patch
path: /tmp/patch
- name: Commit and push regenerated apidiffs
run: |
PATCH=/tmp/patch/apidiffs.patch
if [[ ! -s "$PATCH" ]]; then
echo "No apidiff changes to commit"
exit 0
fi
git apply "$PATCH"
# Note: GITHUB_TOKEN pushes don't trigger CI re-runs.
# Close and reopen the PR to trigger CI after this commit.
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add docs/apidiffs
git commit -m "chore: regenerate api diff"
git push