From b555f825f7ef9fd3ab8d310df7a6b699f9577dbd Mon Sep 17 00:00:00 2001 From: Tenzin Date: Tue, 12 Nov 2024 11:39:31 +0530 Subject: [PATCH] Update set-default-branch-protection.yml --- .github/workflows/set-default-branch-protection.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/set-default-branch-protection.yml b/.github/workflows/set-default-branch-protection.yml index c299ae8..8003e16 100644 --- a/.github/workflows/set-default-branch-protection.yml +++ b/.github/workflows/set-default-branch-protection.yml @@ -10,6 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Set Main Branch Protection Rule + if: ${{ github.run_number == 1 }} run: | git clone https://github.com/OpenPecha/rules.git python rules/set_branch_protection_rules.py $GITHUB_REPOSITORY main ${{ secrets.ADMIN_GITHUB_TOKEN }}