Skip to content

Commit

Permalink
[chore] Fix the update-otel job (open-telemetry#37258)
Browse files Browse the repository at this point in the history
The job is still failing, see
https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/12782040181/job/35630910758#step:5:10749

Making it simpler without involving third-party actions

---------

Co-authored-by: Alex Boten <[email protected]>
  • Loading branch information
dmitryax and codeboten authored Jan 21, 2025
1 parent 216e51a commit 39913af
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 create a PR
run: |
cd opentelemetry-collector-contrib
git config user.name opentelemetrybot
git config user.email [email protected]
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 39913af

Please sign in to comment.