Skip to content

Commit

Permalink
Update for Build Docs
Browse files Browse the repository at this point in the history
* Add run on Pull Requests that modify Writerside of build-docs.yml
* Add run on Commit Push that modify build-docs.yml
  • Loading branch information
Chats committed Apr 25, 2024
1 parent 035995c commit ae5938d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Build documentation
on:
push:
branches: ['master', 'main']
paths: ['Writerside/**']
paths: ['Writerside/**', '**/build-docs.yml']
pull_request:
paths: ['Writerside/**', '**/build-docs.yml']
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -56,6 +58,7 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: [build, test]
if: ${{ ! github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- name: Download artifacts
Expand Down

0 comments on commit ae5938d

Please sign in to comment.