Skip to content

Commit

Permalink
detect releases by tag presence
Browse files Browse the repository at this point in the history
  • Loading branch information
niksirbi committed Nov 22, 2024
1 parent d322091 commit f43b2b1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/docs_build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ on:
- '*'
pull_request:
workflow_dispatch:
release:
types:
- published

jobs:
linting:
Expand Down Expand Up @@ -113,7 +110,7 @@ jobs:
# Detect if this is a release or from the main branch
echo "Event name: ${{ github.event_name }}"
echo "Ref type: ${{ github.ref_type }}"
if [[ "${{ github.event_name }}" == "push"]] && [[ "${{ github.ref_type }}" == "tag"]]; then
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 f43b2b1

Please sign in to comment.