From e94377a2ec9ce97f34b97a23f5abdd1c8e7a12d8 Mon Sep 17 00:00:00 2001 From: Dmitry Anoshin Date: Mon, 6 Jan 2025 11:59:00 -0800 Subject: [PATCH] [chore] Setup a job to run make update otel --- .github/workflows/update-otel.yaml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/update-otel.yaml diff --git a/.github/workflows/update-otel.yaml b/.github/workflows/update-otel.yaml new file mode 100644 index 000000000000..2a31913c08ee --- /dev/null +++ b/.github/workflows/update-otel.yaml @@ -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 107717825+opentelemetrybot@users.noreply.github.com + - 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" \ No newline at end of file