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 17, 2025
1 parent 25912dc commit 096c70e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/update-otel.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: 'Update contrib to the latest core source'
on:
workflow_dispatch:
# TODO: Remove before merging.
pull_request:
types: [ opened, synchronize, reopened, labeled, unlabeled ]
branches:
- main
# TODO: Enable schedule once it's verified that the action works as expected.
# schedule:
# - cron: "27 21 * * *" # Run at an arbitrary time on weekdays.
Expand All @@ -18,21 +23,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 [email protected]
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 add .
git commit -m "[chore] Update to latest opentelemetry-collector release"
git push origin "opentelemetrybot/update-otel-$(date +%s)"
gh pr create --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 096c70e

Please sign in to comment.