Skip to content

Commit

Permalink
ci: Fix step condition, to fix docs publishing
Browse files Browse the repository at this point in the history
Operator precedence matters... "!github.event_name == 'merge_group'" is
likely different from "github.event_name != 'merge_group'", and the
condition to run the publish Action would fail to validate even on
"push" events. Let's fix.

Fixes: 5e61fce ("ci: For merge groups, add event type, skip publishing docs")
Signed-off-by: Quentin Monnet <[email protected]>
  • Loading branch information
qmonnet committed Jan 13, 2025
1 parent bc2631f commit fded2e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,18 @@ jobs:
cp -r ./design-docs/src/mdbook/book "${{ github.workspace }}/publish/design-docs"
- name: "(Push) Setup Pages"
if: "${{ !github.event.pull_request && !github.event_name == 'merge_group' }}"
if: "${{ !github.event.pull_request && github.event_name != 'merge_group' }}"
uses: "actions/configure-pages@v5"

- name: "(Push) Upload design-docs"
if: "${{ !github.event.pull_request && !github.event_name == 'merge_group' }}"
if: "${{ !github.event.pull_request && github.event_name != 'merge_group' }}"
uses: "actions/upload-pages-artifact@v3"
with:
# Upload design-docs build directory content
path: 'publish/design-docs'

- name: "(Push) Deploy to GitHub Pages"
if: "${{ !github.event.pull_request && !github.event_name == 'merge_group' }}"
if: "${{ !github.event.pull_request && github.event_name != 'merge_group' }}"
id: "deployment"
uses: "actions/deploy-pages@v4"
env:
Expand Down

0 comments on commit fded2e2

Please sign in to comment.