File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 13
13
# Checkout code to get the Dependabot CLI input file
14
14
- name : Checkout code
15
15
uses : actions/checkout@v4
16
+ # Checkout to a directory to keep the working dir clean for the update.
17
+ with :
18
+ path : repo
16
19
17
20
- name : Download CLI
18
21
env :
@@ -30,12 +33,15 @@ jobs:
30
33
run : |
31
34
# Run Dependabot CLI with options:
32
35
# -f: the path to the job input
36
+ # --local: use the locally checked out code instead of cloning each time
33
37
# --timeout: the maximum time to wait for a job to finish
34
38
./dependabot update \
35
- -f .github/dependabot/go.yml \
39
+ -f repo/.github/dependabot/go.yml \
40
+ --local repo \
36
41
--timeout 20m >> result.jsonl || true
37
42
./dependabot update \
38
- -f .github/dependabot/bundler.yml \
43
+ -f repo/.github/dependabot/bundler.yml \
44
+ --local repo \
39
45
--timeout 20m >> result.jsonl || true
40
46
41
47
- name : Upload result
You can’t perform that action at this time.
0 commit comments