@@ -27,10 +27,14 @@ jobs:
2727 timeout-minutes : 30
2828 steps :
2929 - 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
3134 env :
3235 GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
3336 REPO : seamapi/${{ github.event.inputs.repo }}
37+ DESCRIPTION : ${{ github.event.inputs.description }}
3438 bootstrap :
3539 name : Bootstrap code
3640 runs-on : ubuntu-latest
4044 - name : Checkout
4145 uses : actions/checkout@v3
4246 with :
43- ref : main
4447 fetch-depth : 0
4548 token : ${{ secrets.GH_TOKEN }}
4649 - name : Import GPG key
@@ -61,19 +64,21 @@ jobs:
6164 mk_slug : ${{ github.event.inputs.slug }}
6265 mk_title : ${{ github.event.inputs.title }}
6366 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
6473 - name : Commit
6574 uses : stefanzweifel/git-auto-commit-action@v4
6675 with :
76+ skip_fetch : true
77+ skip_checkout : true
6778 commit_message : Replace makenew boilerplate
6879 commit_user_name : ${{ secrets.GIT_USER_NAME }}
6980 commit_user_email : ${{ secrets.GIT_USER_EMAIL }}
7081 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 : git@github.com:seamapi/${{ github.event.inputs.repo }}.git
7782 version :
7883 name : Cut initial version
7984 runs-on : ubuntu-latest
0 commit comments