mirror of
https://github.com/ziex-dev/ziex.git
synced 2026-07-21 02:59:36 -06:00
fix(template): rm repo creation
This commit is contained in:
parent
4a86142a6b
commit
2adcd93f85
13
.github/workflows/template-sync.yml
vendored
13
.github/workflows/template-sync.yml
vendored
@ -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 }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user