Skip to content

Commit 6e5ddf1

Browse files
author
Mathieu Scheltienne
committed
run stub generation workflow daily
1 parent 33f98cb commit 6e5ddf1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/stubs.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ concurrency:
33
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
44
cancel-in-progress: true
55
on: # yamllint disable-line rule:truthy
6-
pull_request:
7-
push:
8-
branches: [main]
6+
schedule:
7+
- cron: '0 3 * * *'
98
workflow_dispatch:
109

1110
jobs:
@@ -32,7 +31,6 @@ jobs:
3231
- name: Generate stub files
3332
run: python tools/stubgen.py
3433
- name: Push stub files
35-
if: github.event_name == 'push'
3634
run: |
3735
git config --global user.name 'github-actions[bot]'
3836
git config --global user.email 'github-actions[bot]@users.noreply.github.com'

0 commit comments

Comments
 (0)