Skip to content

Commit e7c3788

Browse files
committed
1 parent 59a5934 commit e7c3788

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
version: 2
55
updates:
6+
# 更新 go mod
67
- package-ecosystem: gomod
78
directory: /
89
schedule:
@@ -21,6 +22,7 @@ updates:
2122
- pr/release/none-required
2223
- pr/dependabot/gomod
2324

25+
# 更新 github action
2426
- package-ecosystem: github-actions
2527
directory: /
2628
schedule:

.github/workflows/lint-codeowners.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
permissions: read-all
1010

1111
env:
12+
# Hard-code the path instead of using ${{ github.repository }}
1213
REPOSITY_NAME: github.com/weizhoublue/github-action-test
1314

1415
# for each pr, queue all workflows
@@ -45,7 +46,7 @@ jobs:
4546
name: Check CODEOWNERS consistency
4647
runs-on: ubuntu-latest
4748
steps:
48-
- uses: actions/checkout@v2
49+
- uses: actions/checkout@v3
4950
with:
5051
persist-credentials: false
5152
# Hard-code the path instead of using ${{ github.repository }}
@@ -60,7 +61,7 @@ jobs:
6061
# To check if all files are covered by patterns other than the
6162
# catch-all '*', we turn the file into a .gitignore and list
6263
# unmatched files.
63-
cd src/${REPOSITY_NAME}
64+
cd src/${{ env.REPOSITY_NAME }}
6465
# Copy all patterns from CODEOWNERS, but skipping the comments
6566
# ('^[^#]') and the catch-all '*' rule (the only one with a single
6667
# character, we skip it with '^.[^ ]').
@@ -79,7 +80,7 @@ jobs:
7980
- name: Check if CODEOWNERS has stale entries
8081
if: ${{ needs.check_changes.outputs.deleted-files == 'true' }}
8182
run: |
82-
cd src/${REPOSITY_NAME}
83+
cd src/${{ env.REPOSITY_NAME }}
8384
EXIT_STATUS=0
8485
# We go through the patterns in CODEOWNERS, and for each of them we
8586
# search for corresponding files in the repo.

0 commit comments

Comments
 (0)