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 }}