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: with:
submodules: true submodules: true
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
fetch-depth: 1 fetch-depth: 0
- name: Fail if tag is not develop - name: Fail if tag is not develop
run: | run: |

View File

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