forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
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 (open-telemetry#37037)
Trying to make open-telemetry#36777 work without touching it
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
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,36 @@ | ||
name: 'Update contrib to the latest core source' | ||
on: | ||
workflow_dispatch: | ||
# TODO: Enable schedule once it's verified that the action works as expected. | ||
# schedule: | ||
# - cron: "27 21 * * *" # Run at an arbitrary time on weekdays. | ||
|
||
jobs: | ||
update-otel: | ||
runs-on: ubuntu-24.04 | ||
if: ${{ github.repository_owner == 'open-telemetry' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: opentelemetry-collector-contrib | ||
- name: Pull the latest collector repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: opentelemetry-collector | ||
repository: open-telemetry/opentelemetry-collector | ||
- 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 genotelcontribcol | ||
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" | ||
body: | | ||
This PR updates the opentelemetry-collector dependency to the latest release. |
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