...

Text file src/go.opentelemetry.io/otel/.github/workflows/dependabot.yml

Documentation: go.opentelemetry.io/otel/.github/workflows

     1name: Dependabot-Tidier
     2on:
     3  pull_request:
     4    types: [ labeled ]
     5
     6jobs:
     7  mod_tidier:
     8    if: ${{ contains(github.event.pull_request.labels.*.name, 'dependencies') }}
     9    runs-on: ubuntu-latest
    10    steps:
    11    - uses: actions/checkout@v4
    12      with:
    13        ref: ${{ github.head_ref }}
    14    - uses: actions/setup-go@v4
    15      with:
    16        go-version: "~1.21.3"
    17        check-latest: true
    18        cache-dependency-path: "**/go.sum"
    19    - uses: evantorrie/mott-the-tidier@v1-beta
    20      id: modtidy
    21      with:
    22        gomods: '**/go.mod'
    23        gomodsum_only: true
    24    - uses: stefanzweifel/git-auto-commit-action@v5
    25      id: autocommit
    26      with:
    27        commit_message: Auto-fix go.sum changes in dependent modules
    28    - name: changes
    29      run: |
    30        echo "Changes detected: ${{ steps.autocommit.outputs.changes_detected }}"

View as plain text