fix(template): rm repo creation

This commit is contained in:
Nurul Huda (Apon) 2026-03-20 04:01:50 +06:00
parent 4a86142a6b
commit 2adcd93f85
No known key found for this signature in database
GPG Key ID: 5D3F1DE2855A2F79

View File

@ -43,19 +43,6 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Create Repo if not exists
env:
GITHUB_TOKEN: ${{ secrets.SYNC_TOKEN || secrets.GITHUB_TOKEN }}
run: |
OWNER=$(echo $GITHUB_REPOSITORY | cut -d'/' -f1)
REPO_NAME="template-${{ matrix.template }}"
if ! gh repo view "$OWNER/$REPO_NAME" >/dev/null 2>&1; then
echo "Creating repository $OWNER/$REPO_NAME"
gh repo create "$OWNER/$REPO_NAME" --public --template=false --description "Starter template for Ziex ($REPO_NAME)."
else
echo "Repository $OWNER/$REPO_NAME already exists."
fi
- name: Populate and Sync
env:
GITHUB_TOKEN: ${{ secrets.SYNC_TOKEN || secrets.GITHUB_TOKEN }}