sets fetch-depth to 0 for verison script

This commit is contained in:
Christopher Lowenthal 2022-10-31 16:45:10 -04:00
parent e616fbd800
commit 17512ec838

View file

@ -11,10 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pwd
- run: ls -alt
- run: git pull --tags
- run: git tag -l
with:
fetch-depth: 0
- run: |
current=$(git describe --tags | grep -Eo '[0-9]*?\.[0-9]*?\.[0-9]*')
array=($(echo $current | tr '.' '\n'))