diff --git a/.github/workflows/update-otel.yaml b/.github/workflows/update-otel.yaml index 79f963ccd027..cc84124026ce 100644 --- a/.github/workflows/update-otel.yaml +++ b/.github/workflows/update-otel.yaml @@ -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 }}