diff --git a/.github/workflows/update-otel-cron.yml b/.github/workflows/update-otel-cron.yml new file mode 100644 index 000000000000..d3c03948550e --- /dev/null +++ b/.github/workflows/update-otel-cron.yml @@ -0,0 +1,33 @@ +name: 'Update contrib to the latest core source' +on: + pull_request: + 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 + 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" +