Skip to content

Commit

Permalink
[feat] add cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyBoWu committed May 13, 2024
1 parent 01fc5e6 commit 904f8d8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
branches:
- main
workflow_dispatch:
schedule:
# Runs at 10:00 UTC from March to November (PDT, UTC-7)
- cron: '0 10 * 3-11 *'
# Runs at 11:00 UTC from November to March (PST, UTC-8)
- cron: '0 11 * 1-3,11,12 *'

jobs:

Expand Down Expand Up @@ -48,7 +53,7 @@ jobs:
- name: Push Slack Notification
uses: slackapi/[email protected]
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID_GITHUB_NOTIFICATION }}
channel-id: ${{ secrets.SLACK_CHANNEL_ID_API_INTEGRATION_TESTS }}
payload: |
{
"text": "${{ github.repository }}: API Integration Tests have been completed. Check the results at github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
Expand Down

0 comments on commit 904f8d8

Please sign in to comment.