Skip to content

Commit

Permalink
Use marketplace git describe for tag
Browse files Browse the repository at this point in the history
  • Loading branch information
CBroz1 committed Jul 12, 2024
1 parent e4a19bb commit 70462d2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ jobs:
pip install .[docs]
git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Git describe # Get tags
id: ghd
uses: proudust/gh-describe@v2

- name: Deploy
uses:
run: | # github.ref_name is branch name if dispatch
FULL_VERSION=${{ git describe --tags --abbrev=0 }}
FULL_VERSION=${{ steps.ghd.outputs.tag }}
export MAJOR_VERSION=${FULL_VERSION:0:3}
echo "OWNER: ${REPO_OWNER}. BUILD: ${MAJOR_VERSION}"
bash ./docs/build-docs.sh push $REPO_OWNER
Expand Down

0 comments on commit 70462d2

Please sign in to comment.