backend: Add create commit method for GitHub (#3105) #2074
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: scaffolding | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
env: | |
GOPATH: ${{ github.workspace }}/go | |
GOBIN: ${{ github.workspace }}/go/bin | |
PACKAGEPATH: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: ${{ env.PACKAGEPATH }} | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22.x | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
check-latest: true | |
- name: scaffold new app | |
run: yes | go run scaffolder.go -m gateway -p ${{ github.sha }} -o ${{ github.repository_owner }} | |
working-directory: ${{ env.PACKAGEPATH }}/tools/scaffolding | |
- name: build scaffolding | |
run: make | |
working-directory: ${{ github.workspace }}/go/src/github.com/runner/clutch-custom-gateway |