Skip to content

Commit 180c63f

Browse files
Always run the render and publish portion if manually dispatched
1 parent 51480f4 commit 180c63f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/fetch_and_deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ jobs:
6060
run: python -m oss_dashboard.main
6161

6262
- name: Set up Quarto
63-
if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
63+
if: ((github.ref == 'refs/heads/main') && (github.event_name == 'push' || github.event_name == 'schedule')) || github.event_name == 'workflow_dispatch'
6464
uses: quarto-dev/quarto-actions/setup@v2
6565

6666
# 👇 single step that both renders and deploys to the gh‑pages branch
6767
- name: Render and publish
68-
if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
68+
if: ((github.ref == 'refs/heads/main') && (github.event_name == 'push' || github.event_name == 'schedule')) || github.event_name == 'workflow_dispatch'
6969
uses: quarto-dev/quarto-actions/publish@v2
7070
with:
7171
target: gh-pages

0 commit comments

Comments
 (0)