From 22f9d6e99fb8c996a2fb1f16a1d95d1cfd6c65b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edmond=20Dant=C3=A8s?= <1213970695@qq.com> Date: Sat, 6 Jul 2024 14:26:17 +0800 Subject: [PATCH] Update go.yml --- .github/workflows/go.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index af8c512..b0e5f01 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -30,6 +30,12 @@ jobs: repository: 'sonarqube-gen' - name: Build sonarqube-gen - run: ls -la; cd sonarqube-gen;go build -v -o main ./...;cp main ../;rm -rf sonarqube-gen - - name: Generate code - run: ./main --host="https://next.sonarqube.com/sonarqube" --internal=false + run: | + cd sonarqube-gen + go build -v -o main ./... + mkdir sonarqube + ./main --host="https://next.sonarqube.com/sonarqube" --internal=false + - name: Rewrite code + run: | + cp -r sonarqube-gen/sonarqube ./ + git diff