Skip to content

Commit c8574a1

Browse files
updated to test
1 parent d6a18e9 commit c8574a1

File tree

1 file changed

+245
-0
lines changed

1 file changed

+245
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,245 @@
1+
name: create-github-repository-using-github-workflow
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
organization:
6+
type: string
7+
default: 'devwithkrishna'
8+
description: 'The GitHub organization where the repository will be created.'
9+
required: true
10+
repository_name:
11+
type: string
12+
default: ''
13+
description: 'Enter the repository name'
14+
required: true
15+
repository_description:
16+
type: string
17+
required: true
18+
description: 'A short description of the repository.if more than a word enclose in double quotes'
19+
private:
20+
type: boolean
21+
default: false
22+
description: 'Whether the repository is private.'
23+
visibility:
24+
type: choice
25+
options:
26+
- public
27+
- private
28+
required: true
29+
has_issues:
30+
type: boolean
31+
description: 'Either true to enable issues for this repository or false to disable them.'
32+
default: true
33+
has_projects:
34+
type: boolean
35+
default: true
36+
description: 'Either true to enable projects for this repository or false to disable them'
37+
has_wiki:
38+
type: boolean
39+
default: true
40+
description: 'Either true to enable the wiki for this repository or false to disable it.'
41+
gitignore_template:
42+
type: choice
43+
options:
44+
- AL
45+
- Actionscript
46+
- Ada
47+
- Agda
48+
- Android
49+
- AppEngine
50+
- AppceleratorTitanium
51+
- ArchLinuxPackages
52+
- Autotools
53+
- C++
54+
- C
55+
- CFWheels
56+
- CMake
57+
- CONTRIBUTING.md
58+
- CUDA
59+
- CakePHP
60+
- ChefCookbook
61+
- Clojure
62+
- CodeIgniter
63+
- CommonLisp
64+
- Composer
65+
- Concrete5
66+
- Coq
67+
- CraftCMS
68+
- D
69+
- DM
70+
- Dart
71+
- Delphi
72+
- Drupal
73+
- EPiServer
74+
- Eagle
75+
- Elisp
76+
- Elixir
77+
- Elm
78+
- Erlang
79+
- ExpressionEngine
80+
- ExtJs
81+
- Fancy
82+
- Finale
83+
- FlaxEngine
84+
- ForceDotCom
85+
- Fortran
86+
- FuelPHP
87+
- GWT
88+
- Gcov
89+
- GitBook
90+
- Go
91+
- Godot
92+
- Gradle
93+
- Grails
94+
- Haskell
95+
- IGORPro
96+
- Idris
97+
- JBoss
98+
- JENKINS_HOME
99+
- Java
100+
- Jekyll
101+
- Joomla
102+
- Julia
103+
- KiCad
104+
- Kohana
105+
- Kotlin
106+
- LabVIEW
107+
- Laravel
108+
- Leiningen
109+
- LemonStand
110+
- Lilypond
111+
- Lithium
112+
- Lua
113+
- Magento
114+
- Maven
115+
- Mercury
116+
- MetaProgrammingSystem
117+
- Nanoc
118+
- Nim
119+
- Node
120+
- OCaml
121+
- Objective-C
122+
- Opa
123+
- OpenCart
124+
- OracleForms
125+
- Packer
126+
- Perl
127+
- Phalcon
128+
- PlayFramework
129+
- Plone
130+
- Prestashop
131+
- Processing
132+
- PureScript
133+
- Python
134+
- Qooxdoo
135+
- Qt
136+
- R
137+
- ROS
138+
- Racket
139+
- Rails
140+
- Raku
141+
- RhodesRhomobile
142+
- Ruby
143+
- Rust
144+
- SCons
145+
- Sass
146+
- Scala
147+
- Scheme
148+
- Scrivener
149+
- Sdcc
150+
- SeamGen
151+
- SketchUp
152+
- Smalltalk
153+
- Stella
154+
- SugarCRM
155+
- Swift
156+
- Symfony
157+
- SymphonyCMS
158+
- TeX
159+
- Terraform
160+
- Textpattern
161+
- TurboGears2
162+
- TwinCAT3
163+
- Typo3
164+
- Unity
165+
- UnrealEngine
166+
- WordPress
167+
- Xojo
168+
- Yeoman
169+
- Yii
170+
- ZendFramework
171+
- Zephir
172+
required: false
173+
description: 'Desired language or platform .gitignore template to apply. Use the name of the template'
174+
license_template:
175+
required: false
176+
description: 'Choose license template'
177+
type: choice
178+
options:
179+
- AFL-3.0
180+
- Apache-2.0
181+
- Artistic-2.0
182+
- BSL-1.0
183+
- BSD-2-Clause
184+
- BSD-3-Clause
185+
- BSD-3-Clause-Clear
186+
- BSD-4-Clause
187+
- 0BSD
188+
- CC0-1.0
189+
- CC-BY-4.0
190+
- CC-BY-SA-4.0
191+
- WTFPL
192+
- ECL-2.0
193+
- EPL-1.0
194+
- EPL-2.0
195+
- EUPL-1.1
196+
- AGPL-3.0
197+
- GPL-2.0
198+
- GPL-3.0
199+
- LGPL
200+
- LGPL-2.1
201+
- LGPL-3.0
202+
- ISC
203+
- LPPL-1.3c
204+
- MS-PL
205+
- MIT
206+
- MPL-2.0
207+
- OSL-3.0
208+
- PostgreSQL
209+
- OFL-1.1
210+
- NCSA
211+
- Unlicense
212+
- Zlib
213+
env:
214+
ORGANIZATION: ${{ github.event.inputs.organization }}
215+
REPOSITORY_NAME: ${{ github.event.inputs.repository_name }}
216+
REPOSITORY_DESCRIPTION: ${{ github.event.inputs.repository_description }}
217+
PRIVATE: ${{ github.event.inputs.private }}
218+
VISIBILITY: ${{ github.event.inputs.visibility }}
219+
HAS_ISSUES: ${{ github.event.inputs.has_issues }}
220+
HAS_PROJECTS: ${{ github.event.inputs.has_projects }}
221+
HAS_WIKI: ${{ github.event.inputs.has_wiki }}
222+
GITIGNORE_TEMPLATE: ${{ github.event.inputs.gitignore_template }}
223+
LICENSE_TEMPLATE: ${{ github.event.inputs.license_template }}
224+
225+
run-name: ${{ github.actor }} creating ${{ inputs.repository_name }}
226+
permissions:
227+
repository-projects: write
228+
229+
jobs:
230+
github-repository-creation-using-github-workflow:
231+
runs-on: ubuntu-latest
232+
steps:
233+
- name: Checkout code
234+
uses: actions/checkout@v4
235+
- name: Listing the files
236+
run: ls -la
237+
- name: Execute the program
238+
env:
239+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
240+
run: |
241+
bash create_repository_in_github.sh ${{ inputs.organization }} ${{ inputs.repository_name }} ${{ inputs.repository_description }} ${{ inputs.private }} ${{ inputs.visibility }} ${{ inputs.has_issues}} ${{ inputs.has_projects }} ${{ inputs.has_wiki}} ${{ inputs.gitignore_template}} ${{ inputs.license_template}}
242+
243+
244+
245+

0 commit comments

Comments
 (0)