File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 33
44version : 2
55updates :
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 :
Original file line number Diff line number Diff line change 99permissions : read-all
1010
1111env :
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
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 }}
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 '^.[^ ]').
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.
You can’t perform that action at this time.
0 commit comments