Skip to content

Commit

Permalink
Use BOT_TOKEN for checkout in auto-update-translator-cid (#2455)
Browse files Browse the repository at this point in the history
Fixes #2427.
  • Loading branch information
pbchekin authored Oct 10, 2024
1 parent a51cf2c commit a2a3100
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/auto-update-translator-cid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.BOT_TOKEN }}

# search the opened PR that has branch "bot/update_translator_cid", no new PR as long as the target PR is open
- name: Search the opened PR that has branch ${{ env.PR_BRANCH }}
Expand Down Expand Up @@ -98,8 +99,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git config --global user.name 'glados-intel'
git config --global user.email 'glados@intel.com'
if git show-ref --verify --quiet "refs/remotes/origin/${PR_BRANCH}"; then
echo "${PR_BRANCH} already exist, deleting..."
Expand Down

0 comments on commit a2a3100

Please sign in to comment.