File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4848 if : github.event_name == 'pull_request'
4949 run : bundle exec rake
5050 - name : Build with Jekyll
51- # Only run on pushes or manual runs
52- if : github.event_name == 'push' || github.event_name == 'workflow_dispatch '
51+ # Don't run in pull requests
52+ if : github.event_name != 'pull_request '
5353 # Outputs to the './_site' directory by default
5454 run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
5555 env :
6060
6161 # Deployment job
6262 deploy :
63- # Only run on pushes or manual runs
64- if : github.event_name == 'push' || github.event_name == 'workflow_dispatch '
63+ # Only run on pushes to the default branch
64+ if : github.event_name == 'push' && github.ref == 'refs/heads/main '
6565 environment :
6666 name : github-pages
6767 url : ${{ steps.deployment.outputs.page_url }}
You can’t perform that action at this time.
0 commit comments