Skip to content

Commit

Permalink
change if guard for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
niksirbi committed Nov 22, 2024
1 parent 4405138 commit d322091
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docs_build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ jobs:
run: |
# Detect if this is a release or from the main branch
echo "Event name: ${{ github.event_name }}"
if [[ "${{ github.event_name }}" == "release" ]]; then
echo "Ref type: ${{ github.ref_type }}"
if [[ "${{ github.event_name }}" == "push"]] && [[ "${{ github.ref_type }}" == "tag"]]; then
# Get the tag name without the "refs/tags/" part
version="${GITHUB_REF#refs/*/}"
else
Expand Down

0 comments on commit d322091

Please sign in to comment.