Fetch-depth 0 on release

This commit is contained in:
Adria Navarro 2023-05-05 14:56:43 +01:00
parent c025087510
commit 18a9745a73
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ jobs:
with:
submodules: true
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
fetch-depth: 1
fetch-depth: 0
- name: Fail if tag is not develop
run: |

View File

@ -4,9 +4,9 @@ concurrency: release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- "v[0-9]+.[0-9]+.[0-9]+"
# Exclude all pre-releases
- '!v*[0-9]+.[0-9]+.[0-9]+-*'
- "!v*[0-9]+.[0-9]+.[0-9]+-*"
workflow_dispatch:
inputs:
tags:
@ -29,7 +29,7 @@ jobs:
with:
submodules: true
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
fetch-depth: 1
fetch-depth: 0
- name: Fail if branch is not master
if: github.ref != 'refs/heads/master'