Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] add a job to update-otel daily #36777

Closed
wants to merge 9 commits into from
33 changes: 33 additions & 0 deletions .github/workflows/update-otel-cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 'Update contrib to the latest core source'
on:
pull_request:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reminder to remove before merge.

Suggested change
pull_request:

schedule:
atoulme marked this conversation as resolved.
Show resolved Hide resolved
- cron: "27 21 * * *" # Run at an arbitrary time on weekdays.
atoulme marked this conversation as resolved.
Show resolved Hide resolved

jobs:
update-otel:
runs-on: ubuntu-24.04
if: github.repository_owner == 'open-telemetry'
steps:
- uses: actions/checkout@v4
with:
path: opentelemetry-collector
repository: open-telemetry/opentelemetry-collector
ref: main
- uses: actions/checkout@v4
with:
path: opentelemetry-collector-contrib
- name: Update to latest opentelemetry-collector release
run: |
cd opentelemetry-collector-contrib
git config user.name opentelemetrybot
git config user.email 107717825+opentelemetrybot@users.noreply.github.com
make update-otel
- name: Create pull request against main
uses: peter-evans/create-pull-request@v7
with:
branch: opentelemetrybot/update-otel
token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
commit-message: Update to latest opentelemetry-collector release.
title: "[chore] Update to latest opentelemetry-collector"

Loading