Skip to content

Commit

Permalink
Merge pull request #26 from cyber-dojo/set-fetch-depth-to-one
Browse files Browse the repository at this point in the history
CI: in checkout steps set fetch-depth to 1
  • Loading branch information
JonJagger authored Sep 9, 2024
2 parents 035b6b3 + f5c62af commit 4eb99f2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
image_name: ${{ steps.variables.outputs.image_name }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Set outputs
id: variables
Expand All @@ -41,6 +43,8 @@ jobs:
pull-requests: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Setup Kosli CLI
uses: kosli-dev/setup-cli-action@v2
Expand All @@ -63,6 +67,8 @@ jobs:
kosli_fingerprint: ${{ steps.variables.outputs.kosli_fingerprint }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Build image
run:
Expand Down Expand Up @@ -101,6 +107,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Setup Kosli CLI
uses: kosli-dev/setup-cli-action@v2
Expand Down Expand Up @@ -138,6 +146,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Setup Kosli CLI
uses: kosli-dev/setup-cli-action@v2
Expand Down Expand Up @@ -272,6 +282,8 @@ jobs:
IMAGE_NAME: ${{ needs.kosli-trail.outputs.image_name }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- uses: docker/login-action@v3
with:
Expand Down

0 comments on commit 4eb99f2

Please sign in to comment.