Skip to content

Commit

Permalink
Fetch full repo again
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 21, 2023
1 parent 73d6958 commit de2a4d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1 # Need to full repo for getting all tags
fetch-depth: 0 # Need to full repo for getting all tags
- name: Check available tags
run: |
git for-each-ref --format "%(refname)"
Expand Down Expand Up @@ -75,9 +75,9 @@ jobs:
tar -xvf doc_artifact/artifact.tar --directory .
rm -r doc_artifact
# If there are tags simply use the latest one via lexicographic sort
if [ ls -v* > /dev/null 2>&1 ]; then
latest_version=$(ls -v* | tail -n1)
sed -i s'/__LATEST__/${latest_version}/g' index.html
if ls -d v*/ > /dev/null 2>&1; then
latest_version=$(ls -d v*/ | tail -n1)
sed -i s'/__LATEST__/'"${latest_version%/}"'/g' index.html
else
# Fall back to whatever we just built now
sed -i s'/__LATEST__/${{ github.ref_name }}/g' index.html
Expand Down

0 comments on commit de2a4d6

Please sign in to comment.