Skip to content

Commit

Permalink
run the CI on a schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed Aug 11, 2023
1 parent 95a4074 commit 3134fd3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 * * * *'

jobs:
release:
Expand Down Expand Up @@ -41,7 +43,7 @@ jobs:
run: makim release.dry

- name: Release command
if: ${{ github.event_name == 'workflow_dispatch' }}
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
Expand All @@ -53,7 +55,7 @@ jobs:
run: makim docs.build

- name: GitHub Pages action
if: ${{ github.event_name == 'workflow_dispatch' }}
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 3134fd3

Please sign in to comment.