From 3278ab27d68887f46607a95488456cde88c6ed83 Mon Sep 17 00:00:00 2001 From: Zakary Date: Fri, 9 Sep 2022 11:26:23 +0800 Subject: [PATCH] fix(ci): dependabot update pnpm-lock --- .github/workflows/dependabot-update-lockfile.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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