I found one github-action-repo-settings-sync actions that allow it:
name: Repo Setup
on:
push:
branches:
- master
schedule:
- cron: 0 0 * * *
jobs:
repo_setup:
runs-on: ubuntu-latest
steps:
- name: Repo Setup
uses: kbrashears5/[email protected]
with:
REPOSITORIES: |
kbrashears5/github-action-repo-settings-sync
ALLOW_ISSUES: 'true'
ALLOW_PROJECTS: 'true'
ALLOW_WIKI: 'true'
SQUASH_MERGE: 'true'
MERGE_COMMIT: 'true'
REBASE_MERGE: 'true'
AUTO_MERGE: 'false'
DELETE_HEAD: 'false'
BRANCH_PROTECTION_ENABLED: 'true'
BRANCH_PROTECTION_NAME: 'main'
BRANCH_PROTECTION_REQUIRED_REVIEWERS: '1'
BRANCH_PROTECTION_DISMISS: 'true'
BRANCH_PROTECTION_CODE_OWNERS: 'true'
BRANCH_PROTECTION_ENFORCE_ADMINS: 'false'
TOKEN: ${{ secrets.ACTIONS }}