Skip to content

Commit

Permalink
[chore] Fix the update-otel job
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryax committed Jan 21, 2025
1 parent 8f0c3e9 commit 023aa4a
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/update-otel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,16 @@ jobs:
with:
path: opentelemetry-collector
repository: open-telemetry/opentelemetry-collector
- name: Update to latest opentelemetry-collector release
- name: Update to latest opentelemetry-collector release and push
run: |
cd opentelemetry-collector-contrib
git config user.name opentelemetrybot
git config user.email 107717825+opentelemetrybot@users.noreply.github.com
branch="opentelemetrybot/update-otel-$(date +%s)"
git checkout -b $branch
make genotelcontribcol
make update-otel
- name: Create pull request against main
uses: peter-evans/create-pull-request@v7
with:
branch: opentelemetrybot/update-otel
path: opentelemetry-collector-contrib
base: main
token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
commit-message: "[chore] Update to latest opentelemetry-collector release"
title: "[chore] Update to latest opentelemetry-collector"
body: |
This PR updates the opentelemetry-collector dependency to the latest release.
git push --set-upstream origin $branch
gh pr create --base main --title "[chore] Prepare release ${CANDIDATE_BETA}" --body "This PR updates the opentelemetry-collector dependency to the latest release"
env:
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}

0 comments on commit 023aa4a

Please sign in to comment.