From c24d5a86c9921b75434880a2e5a628bbaf61c4d5 Mon Sep 17 00:00:00 2001 From: houseme Date: Tue, 24 Dec 2024 17:29:46 +0800 Subject: [PATCH] Update golangci-lint.yml --- .github/workflows/golangci-lint.yml | 33 ----------------------------- 1 file changed, 33 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index e8ab5baf18e..0bec9449792 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -47,36 +47,3 @@ jobs: only-new-issues: true github-token: ${{ secrets.GITHUB_TOKEN }} args: --timeout 3m0s - - name: Install gci - run: go install github.com/daixiang0/gci@latest - - name: Run gci - run: | - gci write --custom-order \ - --skip-generated \ - --skip-vendor \ - -s standard \ - -s blank \ - -s default \ - -s dot \ - -s "prefix(github.com/gogf/gf/v2)" \ - -s "prefix(github.com/gogf/gf/cmd)" \ - -s "prefix(github.com/gogf/gf/contrib)" \ - -s "prefix(github.com/gogf/gf/example)" \ - ./ - - name: Check for changes - # Check if the event is a push or a pull request from a forked repository - if: github.event_name == 'push'|| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true) - run: | - if [[ -n "$(git status --porcelain)" ]]; then - echo "HAS_CHANGES=true" >> $GITHUB_ENV - else - echo "HAS_CHANGES=false" >> $GITHUB_ENV - fi - - name: Commit and push changes - if: env.HAS_CHANGES == 'true' - run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "github-actions[bot]@users.noreply.github.com" - # git add . - # git commit -m "Apply gci import order changes [skip ci]" - # git push origin HEAD:$(git rev-parse --abbrev-ref HEAD)