-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Setup a job to run make update otel
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: 'Update contrib to the latest core source' | ||
on: | ||
workflow_dispatch: | ||
pull_request: # TODO: remove before merging | ||
schedule: | ||
- cron: "27 21 * * *" # Run at an arbitrary time on weekdays. | ||
|
||
# TODO: Skip if there is no new commits in the core source. | ||
jobs: | ||
update-otel: | ||
runs-on: ubuntu-24.04 | ||
if: github.repository_owner == 'open-telemetry' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: ../opentelemetry-collector | ||
repository: open-telemetry/opentelemetry-collector | ||
- name: Setup Git user | ||
run: | | ||
git config user.name opentelemetrybot | ||
git config user.email [email protected] | ||
- name: Setup Git user | ||
run: 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" |