Skip to content

Commit

Permalink
Release action: force git tags fetching (fix #153)
Browse files Browse the repository at this point in the history
  • Loading branch information
JEnoch committed Dec 7, 2021
1 parent 04253b2 commit 7657d53
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Expand Up @@ -145,8 +145,10 @@ jobs:
- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 0 # NOTE: get all history for git-version crate to correctly compute a version

fetch-depth: 500 # NOTE: get long history for git-version crate to correctly compute a version
- name: Fetch Git tags # NOTE: workaround for https://github.com/actions/checkout/issues/290
shell: bash
run: git fetch --tags --force
- name: Install prerequisites
shell: bash
run: |
Expand Down Expand Up @@ -284,7 +286,10 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # NOTE: get all history for git-version crate to correctly compute a version
fetch-depth: 500 # NOTE: get long history for git-version crate to correctly compute a version
- name: Fetch Git tags # NOTE: workaround for https://github.com/actions/checkout/issues/290
shell: bash
run: git fetch --tags --force
- name: Docker meta - set tags and labels
id: meta
uses: docker/metadata-action@v3
Expand Down

0 comments on commit 7657d53

Please sign in to comment.