Skip to content

Commit 57bb881

Browse files
committed
use local to avoid excessive cloning
1 parent 60c1c0d commit 57bb881

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/example.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,18 @@ jobs:
2828
# GITHUB_TOKEN shows an example of how Dependabot CLI can be used with secrets.
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
run: |
31-
./dependabot update -f .github/dependabot/go.yml --timeout 20m > result.jsonl || true
32-
./dependabot update -f .github/dependabot/bundler.yml --timeout 20m >> result.jsonl || true
31+
# Run Dependabot CLI with options:
32+
# -f: the path to the job input
33+
# --local: use the cloned repo as input to avoid cloning again
34+
# --timeout: the maximum time to wait for a job to finish
35+
./dependabot update \
36+
-f .github/dependabot/go.yml \
37+
--local . \
38+
--timeout 20m >> result.jsonl || true
39+
./dependabot update \
40+
-f .github/dependabot/bundler.yml \
41+
--local . \
42+
--timeout 20m >> result.jsonl || true
3343
3444
- name: Upload result
3545
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)