ci: Don't add remotes if not scheduled run

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2021-05-22 18:36:38 +02:00
parent 53d6f50a0f
commit 7750b0ddab
+1
View File
@@ -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 }}