Skip to content

Bump io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha from 2.11.0-alpha to 2.12.0-alpha #2

Bump io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha from 2.11.0-alpha to 2.12.0-alpha

Bump io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha from 2.11.0-alpha to 2.12.0-alpha #2

name: Dependabot auto-merge
on:
pull_request:
workflow_dispatch: # Enables manual trigger
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{github.event.pull_request.user.login == 'dependabot[bot]' && github.event_name == 'pull_request'}}
steps:
- name: Set merge target
id: set-target
run: |
if [ "${{ github.event.pull_request.base.ref }}" = "main" ]; then
echo "target=minor" >> $GITHUB_OUTPUT
else
echo "target=patch" >> $GITHUB_OUTPUT
fi
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d
with:
github-token: "${{ secrets.GH_ACTIONS_REPO_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: steps.metadata.outputs.update-type == format('version-update:semver-{0}', steps.set-target.outputs.target)
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GH_ACTIONS_REPO_TOKEN}}