From 7750b0ddab568c45467a90d0f6c4e0ed5aae5f45 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sat, 22 May 2021 18:36:38 +0200 Subject: [PATCH] ci: Don't add remotes if not scheduled run --- .github/workflows/refresh.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/refresh.yml b/.github/workflows/refresh.yml index 42a97a49d0..0eb88fef2d 100644 --- a/.github/workflows/refresh.yml +++ b/.github/workflows/refresh.yml @@ -22,6 +22,7 @@ jobs: git config pull.ff only git config pull.rebase true - name: "Remotes" + if: ${{ github.event_name == 'schedule' }} shell: bash run: | git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}