Skip to content

Commit c38c2f3

Browse files
committed
Chore: add fetch-depth to examples
I don't think this is necessary in the normal case (checkout without any arguments), but it *is* necessary when checking out tags. So might as well always include it.
1 parent 7355e5c commit c38c2f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
YOUR_APPLICATION_NAME: cool-app
5454
steps:
5555
- uses: actions/checkout@v3
56+
with:
57+
fetch-depth: 0
5658
- name: create public/private key on GHA
5759
run: |
5860
mkdir -p ~/.ssh/
@@ -88,6 +90,8 @@ jobs:
8890
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
8991
steps:
9092
- uses: actions/checkout@v3
93+
with:
94+
fetch-depth: 0
9195
- name: create an ssh key just for this run
9296
run: |
9397
mkdir -p ~/.ssh/

0 commit comments

Comments
 (0)