Skip to content

Commit 80b866e

Browse files
authored
fix: Update dependencies and exclude test data from go.mod processing (#4415)
Update dependencies and ensure that go.mod files in the test data directory are excluded from processing during the tag creation for the CLI tool.
1 parent 2a77d32 commit 80b866e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/tag.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
git tag $tag
2828
git push origin $tag
2929
done
30+
- name: update dependencies
31+
run: |
32+
go env -w GOPRIVATE=github.com/gogf/gf
33+
.github/workflows/scripts/update_version.sh ./cmd/gf ${{ github.ref_name }}
3034
- name: Create Pull Request
3135
uses: peter-evans/create-pull-request@v4
3236
with:
@@ -43,16 +47,12 @@ jobs:
4347
author_name: TagRobot
4448
author_email: [email protected]
4549
message: 'fix: update gf cli to ${{ github.ref_name }}'
46-
- name: update dependencies
47-
run: |
48-
go env -w GOPRIVATE=github.com/gogf/gf
49-
.github/workflows/scripts/update_version.sh ./cmd/gf ${{ github.ref_name }}
5050
- name: Auto Creating Tags For cli tool
5151
run: |
5252
git config --global user.email "[email protected]"
5353
git config --global user.name "TagRobot"
5454
# auto create tag for cli tool
55-
for file in `find cmd -name go.mod`; do
55+
for file in `find cmd -name go.mod -not -path "*/testdata/*"`; do
5656
tag=$(dirname $file)/${{ github.ref_name }}
5757
git tag $tag
5858
git push origin $tag

0 commit comments

Comments
 (0)