From 1e4085108e2be4260f845c7a06d9d506d28109be Mon Sep 17 00:00:00 2001 From: hailaz <739476267@qq.com> Date: Wed, 3 Sep 2025 11:14:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=B9=B6=E6=8E=92=E9=99=A4=E6=B5=8B=E8=AF=95=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E4=B8=AD=E7=9A=84=20go.mod=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/tag.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 1168ca6fb09..490633aeb58 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -27,6 +27,10 @@ jobs: git tag $tag git push origin $tag done + - name: update dependencies + run: | + go env -w GOPRIVATE=github.com/gogf/gf + .github/workflows/scripts/update_version.sh ./cmd/gf ${{ github.ref_name }} - name: Create Pull Request uses: peter-evans/create-pull-request@v4 with: @@ -43,16 +47,12 @@ jobs: author_name: TagRobot author_email: tagrobot@goframe.org message: 'fix: update gf cli to ${{ github.ref_name }}' - - name: update dependencies - run: | - go env -w GOPRIVATE=github.com/gogf/gf - .github/workflows/scripts/update_version.sh ./cmd/gf ${{ github.ref_name }} - name: Auto Creating Tags For cli tool run: | git config --global user.email "tagrobot@goframe.org" git config --global user.name "TagRobot" # auto create tag for cli tool - for file in `find cmd -name go.mod`; do + for file in `find cmd -name go.mod -not -path "*/testdata/*"`; do tag=$(dirname $file)/${{ github.ref_name }} git tag $tag git push origin $tag