create-repo #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |