From 7d4276018e76dcae46e3b7b57bdae97a24611ba8 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Tue, 24 Jan 2023 13:30:41 -0800 Subject: [PATCH] [chore] use opentelemetrybot (#18008) This works around the limitation that a PR created by an action doesn't trigger workflows automatically by using the opentelemetrybot's token. See https://github.com/open-telemetry/community/blob/main/assets.md#opentelemetry-bot Signed-off-by: Alex Boten --- .github/workflows/create-dependabot-pr.yml | 2 +- .github/workflows/scripts/dependabot-pr.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-dependabot-pr.yml b/.github/workflows/create-dependabot-pr.yml index 52d4005e0d83..30df67bb1f77 100644 --- a/.github/workflows/create-dependabot-pr.yml +++ b/.github/workflows/create-dependabot-pr.yml @@ -15,4 +15,4 @@ jobs: - name: Run dependabot-pr.sh run: ./.github/workflows/scripts/dependabot-pr.sh env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} diff --git a/.github/workflows/scripts/dependabot-pr.sh b/.github/workflows/scripts/dependabot-pr.sh index d8bcea6e5a28..c576363c94f7 100755 --- a/.github/workflows/scripts/dependabot-pr.sh +++ b/.github/workflows/scripts/dependabot-pr.sh @@ -1,7 +1,7 @@ #!/bin/bash -ex -git config user.name $GITHUB_ACTOR -git config user.email $GITHUB_ACTOR@users.noreply.github.com +git config user.name opentelemetrybot +git config user.email 107717825+opentelemetrybot@users.noreply.github.com PR_NAME=dependabot-prs/`date +'%Y-%m-%dT%H%M%S'` git checkout -b $PR_NAME