Skip to content

Update OpenTelemetry Dependencies #117

Update OpenTelemetry Dependencies

Update OpenTelemetry Dependencies #117

Workflow file for this run

name: Update OpenTelemetry Dependencies
on:
pull_request:
paths:
- .github/workflows/update-deps.yml
- internal/buildscripts/update-deps
schedule:
- cron: '0 12 * * 1-5'
env:
OTEL_VERSION: latest
GO_VERSION: 1.19.6
concurrency:
group: update-deps-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
# Update OpenTelemetry dependencies to latest and create a draft PR if successful and there are changes.
update-deps:
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: '**/go.sum'
- name: Update OpenTelemetry Dependencies to ${{ env.OTEL_VERSION }}
run: OTEL_VERSION=${{ env.OTEL_VERSION }} ./internal/buildscripts/update-deps
- name: make tidy
run: make for-all CMD='make tidy'
- name: Create Pull Request
if: success() && (github.event_name == 'schedule')
uses: peter-evans/create-pull-request@v5
with:
title: Update OpenTelemetry Dependencies to ${{ env.OTEL_VERSION }}
commit-message: Update OpenTelemetry Dependencies to ${{ env.OTEL_VERSION }}
base: main
draft: true
branch: create-pull-request/update-deps