Skip to content

Commit 029c843

Browse files
committed
GH Actions/docs: move step between jobs
Checking the status for GitHub Pages should be done as closely to the actual deploy as possible.
1 parent 63777ca commit 029c843

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/update-docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,6 @@ jobs:
134134
with:
135135
path: ./docs/_site
136136

137-
- name: Check GitHub Pages status
138-
uses: crazy-max/ghaction-github-status@f0ef9e1cf727f9f76f8485f8c525fa03afc4ec02 # v5.0.0
139-
with:
140-
pages_threshold: major_outage
141-
142137
deploy:
143138
needs: build
144139
# Don't run on forks, don't run on normal pushes or PRs (dry-runs).
@@ -152,6 +147,11 @@ jobs:
152147
runs-on: ubuntu-latest
153148

154149
steps:
150+
- name: Check GitHub Pages status
151+
uses: crazy-max/ghaction-github-status@f0ef9e1cf727f9f76f8485f8c525fa03afc4ec02 # v5.0.0
152+
with:
153+
pages_threshold: major_outage
154+
155155
- name: Deploy to GitHub Pages
156156
id: deployment
157157
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0

0 commit comments

Comments
 (0)