diff --git a/.github/workflows/dependabot-update-lockfile.yml b/.github/workflows/dependabot-update-lockfile.yml index 1c416979da07..f5eab4578c02 100644 --- a/.github/workflows/dependabot-update-lockfile.yml +++ b/.github/workflows/dependabot-update-lockfile.yml @@ -13,7 +13,14 @@ jobs: - name: Checkout uses: actions/checkout@v3 with : - ref : ${{ github.ref || github.head_ref || github.ref_name }} + ref : ${{ github.head_ref }} + - name: Git Identity + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: install uses: pnpm/action-setup@v2.2.2 with: @@ -21,8 +28,6 @@ jobs: run_install: | - recursive: true - run: | - git config --global user.name github-actions[bot] - git config --global user.email github-actions[bot]@users.noreply.github.com git add pnpm-lock.yaml git commit -m "build(deps-dev): update pnpm-lock.yaml" git push