Skip to content

Commit 46f913f

Browse files
authored
Update docs.yml
1 parent 6578923 commit 46f913f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
name: Documentation
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # This runs every day at midnight UTC
6+
workflow_dispatch:
7+
push:
48

59
jobs:
610
docs:
711
name: Build & Publish
812
runs-on: ubuntu-latest
913

10-
concurrency:
11-
group: docs-publish
12-
cancel-in-progress: true
13-
1414
steps:
1515
- uses: actions/checkout@v4
1616

@@ -47,7 +47,7 @@ jobs:
4747
echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"
4848
4949
- name: Publish Documentation
50-
if: github.repository == 'MFlowCode/MFC' && github.ref == 'refs/heads/master' && github.event_name == 'push'
50+
if: github.repository == 'MFlowCode/MFC' && github.ref == 'refs/heads/master' && github.event_name == 'cron'
5151
run: |
5252
set +e
5353
git ls-remote "${{ secrets.DOC_PUSH_URL }}" -q

0 commit comments

Comments
 (0)