Skip to content

create-repo

create-repo #2

Workflow file for this run

name: create-repo
on:
workflow_dispatch:
inputs:
prefix:
description: "set repo prefix"
required: true
default: "service"
type: choice
options:
- example
- service
name:
description: "set repo name"
required: true
default: "github-actions"
type: string
jobs:
create-repo-automation:
runs-on: ubuntu-latest
steps:
- name: gh auth login
run: |
echo ${{ secrets.PERSONAL_ACCESS_TOKEN }} | gh auth login --with-token
- name: create-repo
run: |
gh repo create yyjun-actions-test/${{ inputs.prefix }}-${{ inputs.name }} --public --add-readme