diff --git a/.github/workflows/backend-ci.yml b/.github/workflows/backend-ci.yml index a77600e6..edc7a69c 100644 --- a/.github/workflows/backend-ci.yml +++ b/.github/workflows/backend-ci.yml @@ -56,18 +56,6 @@ jobs: run: | find . -type f -name '*.go' -not -path "*/internal/proto/*" | while IFS='' read -r file; do goimports -l -w "$file"; done gofumpt -l -w . - - name: Push - id: push - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: "run go mod tidy & format go codes" - branch: ${{ github.head_ref }} - commit_user_name: ictsc-actions[bot] - commit_user_email: 154957684+ictsc-actions[bot]@users.noreply.github.com - commit_author: ictsc-actions[bot] <154957684+ictsc-actions[bot]@users.noreply.github.com> - - name: Exit with Error If Files Are Changed - if: steps.push.outputs.changes_detected == 'true' - run: exit 1 build: name: Build runs-on: ubuntu-latest diff --git a/.github/workflows/proto-ci.yaml b/.github/workflows/proto-ci.yaml index d98dac95..fef81725 100644 --- a/.github/workflows/proto-ci.yaml +++ b/.github/workflows/proto-ci.yaml @@ -76,58 +76,3 @@ jobs: - name: Exit with Error If Files Are Changed if: steps.push.outputs.changes_detected == 'true' run: exit 1 - generate: - name: Generation - runs-on: ubuntu-latest - needs: format - steps: - - name: Generate a token - id: token - uses: actions/create-github-app-token@v1 - with: - app-id: ${{ secrets.PUSHER_APP_ID }} - private-key: ${{ secrets.PUSHER_PRIVATE_KEY }} - - name: Checkout - uses: actions/checkout@v4 - with: - token: ${{ steps.token.outputs.token }} - # Setup backend - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version-file: backend/go.mod - cache-dependency-path: backend/go.sum - # Setup frontend - - name: Install pnpm - uses: pnpm/action-setup@v4 - with: - package_json_file: frontend/package.json - run_install: false - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: pnpm - cache-dependency-path: frontend/pnpm-lock.yaml - - name: Install dependencies - working-directory: frontend - run: pnpm install - # Generate - - name: Generate backend - working-directory: backend - run: go generate . - - name: Generate frontend - working-directory: frontend - run: pnpm generate:proto - - name: Push - id: push - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: "generate & oapi files" - branch: ${{ github.head_ref }} - commit_user_name: ictsc-actions[bot] - commit_user_email: 154957684+ictsc-actions[bot]@users.noreply.github.com - commit_author: ictsc-actions[bot] <154957684+ictsc-actions[bot]@users.noreply.github.com> - - name: Exit with Error If Files Are Changed - if: steps.push.outputs.changes_detected == 'true' - run: exit 1