@@ -27,10 +27,14 @@ jobs:
27
27
timeout-minutes : 30
28
28
steps :
29
29
- name : Create repository
30
- run : gh repo create --internal $REPO
30
+ run : |
31
+ gh repo create --internal --disable-wiki --description "$DESCRIPTION" $REPO
32
+ gh repo edit $REPO --delete-branch-on-merge
33
+ gh repo edit $REPO --enable-projects=false
31
34
env :
32
35
GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
33
36
REPO : seamapi/${{ github.event.inputs.repo }}
37
+ DESCRIPTION : ${{ github.event.inputs.description }}
34
38
bootstrap :
35
39
name : Bootstrap code
36
40
runs-on : ubuntu-latest
40
44
- name : Checkout
41
45
uses : actions/checkout@v3
42
46
with :
43
- ref : main
44
47
fetch-depth : 0
45
48
token : ${{ secrets.GH_TOKEN }}
46
49
- name : Import GPG key
@@ -61,19 +64,21 @@ jobs:
61
64
mk_slug : ${{ github.event.inputs.slug }}
62
65
mk_title : ${{ github.event.inputs.title }}
63
66
mk_description : ${{ github.event.inputs.description }}
67
+ - name : Set origin
68
+ run : |
69
+ git remote add origin $ORIGIN
70
+ git config --add --bool push.autoSetupRemote true
71
+ env :
72
+ ORIGIN : https://github.com/seamapi/${{ github.event.inputs.repo }}.git
64
73
- name : Commit
65
74
uses : stefanzweifel/git-auto-commit-action@v4
66
75
with :
76
+ skip_fetch : true
77
+ skip_checkout : true
67
78
commit_message : Replace makenew boilerplate
68
79
commit_user_name : ${{ secrets.GIT_USER_NAME }}
69
80
commit_user_email : ${{ secrets.GIT_USER_EMAIL }}
70
81
commit_author : ${{ secrets.GIT_USER_NAME }} <${{ secrets.GIT_USER_EMAIL }}>
71
- - name : Push
72
- run : |
73
- git remote add origin $ORIGIN
74
- git push -u origin main
75
- env :
76
- ORIGIN :
[email protected] :seamapi/${{ github.event.inputs.repo }}.git
77
82
version :
78
83
name : Cut initial version
79
84
runs-on : ubuntu-latest
0 commit comments