Skip to content

Commit

Permalink
fix: action trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Sep 6, 2024
1 parent 19809f3 commit ed439d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ runs:
shell: bash

- name: Commit and publish documentation changes to gh-pages branch
if: ${{ github.event_name }} != "pull_request"
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'release' }}
run: |
sphinx-ape publish . --skip-push
git config --local user.email "[email protected]"
Expand All @@ -49,7 +49,7 @@ runs:
shell: bash

- name: Push changes
if: ${{ github.event_name != 'pull_request' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'release' }}
uses: ad-m/github-push-action@master
with:
branch: gh-pages
Expand Down

0 comments on commit ed439d5

Please sign in to comment.