From 6d1f918150f68cfe59d42121f8e2415feb39af11 Mon Sep 17 00:00:00 2001 From: Kevin Minehart <5140827+kminehart@users.noreply.github.com> Date: Tue, 29 Apr 2025 20:56:29 -0500 Subject: [PATCH] CI: manually `git clone` for backport action (#104751) * manually clone for backport * fix syntax error --- .github/workflows/backport.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 278f7ac2209..ef014739728 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -14,12 +14,8 @@ jobs: if: github.repository == 'grafana/grafana' runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 # 4.2.2 - with: - persist-credentials: false - fetch-depth: 1 - fetch-tags: false + - name: Clone + run: git clone --depth=1 "https://github.com/grafana/grafana.git" - run: git config --local user.name "github-actions[bot]" - run: git config --local user.email "github-actions[bot]@users.noreply.github.com" - run: git config --local --add --bool push.autoSetupRemote true