Skip to content

Commit

Permalink
investigate event_name trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
niksirbi committed Nov 22, 2024
1 parent 4102a1c commit 39bef61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docs_build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
- '*'
pull_request:
workflow_dispatch:
release:
types:
- published

jobs:
linting:
Expand Down Expand Up @@ -108,6 +111,7 @@ jobs:
- name: Push the built HTML to gh-pages-test
run: |
# Detect if this is a release or from the main branch
echo "Event name: ${{ github.event_name }}"
if [[ "${{ github.event_name }}" == "release" ]]; then
# Get the tag name without the "refs/tags/" part
version="${GITHUB_REF#refs/*/}"
Expand Down

0 comments on commit 39bef61

Please sign in to comment.