Browse Source

How many commits to fetch? Github says 'meh'

The right number of commits to fetch is enough to be able to create
a `git describe` result - basically back until the most recent parent
annotated tag.

However, the github action/checkout@v2 only allows a simple number,
which is basically the answer to "how long is a piece of string"
pull/889/head
Hamish Coleman 3 years ago
parent
commit
c0cfe93726
  1. 2
      .github/workflows/cmake.yml
  2. 20
      .github/workflows/tests.yml

2
.github/workflows/cmake.yml

@ -25,6 +25,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
run: | run: |

20
.github/workflows/tests.yml

@ -13,6 +13,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
run: | run: |
git fetch --force --tags git fetch --force --tags
@ -29,6 +31,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
run: | run: |
git fetch --force --tags git fetch --force --tags
@ -60,6 +64,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
run: | run: |
git fetch --force --tags git fetch --force --tags
@ -130,6 +136,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
run: | run: |
git fetch --force --tags git fetch --force --tags
@ -207,6 +215,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
run: | run: |
git fetch --force --tags git fetch --force --tags
@ -355,6 +365,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
run: | run: |
@ -391,6 +403,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
run: | run: |
@ -438,6 +452,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
run: | run: |
@ -491,6 +507,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
run: | run: |
@ -548,6 +566,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
run: | run: |

Loading…
Cancel
Save