Skip to content

Commit 35abfe1

Browse files
committed
add
1 parent f83afbf commit 35abfe1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,18 @@ jobs:
3434
#go-version: '1.21'
3535
cache: false
3636

37+
- name: list of changed files
38+
id: getDiffFile
39+
run: |
40+
echo "::set-output name=files::$(git diff --name-only origin/master | grep '\.go$' | xargs)"
41+
shell: bash
42+
3743
# Runs a set of commands using the runners shell
3844
- name: golangci-lint
3945
uses: golangci/golangci-lint-action@v3
4046
with:
4147
version: v1.48.0
4248
#version: v1.54
4349
working-directory: ./tencentcloud
44-
args: --new-from-rev=origin/master -v
50+
args: {{ steps.getDiffFile.outputs.files }} --new-from-rev=origin/master -v
4551
#args: --enable-all --max-same-issues=0 --max-issues-per-linter=0 --new-from-rev=origin/master -v

tencentcloud/services/ccn/resource_tc_ccn_route_table_input_policies.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ func ResourceTencentCloudCcnRouteTableInputPolicies() *schema.Resource {
3131
Type: schema.TypeString,
3232
Description: "CCN Instance ID.",
3333
},
34+
3435
"route_table_id": {
3536
Required: true,
3637
ForceNew: true,
3738
Type: schema.TypeString,
3839
Description: "CCN Route table ID.",
3940
},
41+
4042
"policies": {
4143
Optional: true,
4244
Type: schema.TypeList,

0 commit comments

Comments
 (0)