Skip to content

Commit 9490ee5

Browse files
authored
Merge pull request #15086 from nextcloud/backport/15085/stable34
[stable34] ci: allow manual deploy via workflow_dispatch
2 parents 0ced20a + 6c7325f commit 9490ee5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/sphinxbuild.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- stable*
99
schedule:
1010
- cron: '0 2 * * *' # 02:00 UTC daily — full build + deploy
11+
workflow_dispatch:
1112

1213
permissions:
1314
contents: read
@@ -507,7 +508,7 @@ jobs:
507508
deploy:
508509
name: Deploy documentation for gh-pages
509510
needs: stage-and-check
510-
if: github.event_name == 'schedule'
511+
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
511512
runs-on: ubuntu-latest
512513

513514
permissions:
@@ -868,6 +869,6 @@ jobs:
868869
echo "This workflow ran for a push. We need stage-and-check and link-check to succeed; deploy and netlify-preview must be skipped"
869870
if ${{ needs.stage-and-check.result != 'success' || needs.link-check.result != 'success' || needs.deploy.result != 'skipped' || needs.netlify-preview.result != 'skipped' }}; then exit 1; fi
870871
else
871-
echo "This workflow ran on schedule. We need stage-and-check, link-check, and deploy to succeed; netlify-preview must be skipped"
872+
echo "This workflow ran on schedule or workflow_dispatch. We need stage-and-check, link-check, and deploy to succeed; netlify-preview must be skipped"
872873
if ${{ needs.stage-and-check.result != 'success' || needs.link-check.result != 'success' || needs.deploy.result != 'success' || needs.netlify-preview.result != 'skipped' }}; then exit 1; fi
873874
fi

0 commit comments

Comments
 (0)