Prow-CI #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prow-CI | |
on: | |
schedule: | |
- cron: '*/5 * * * *' # Runs every day at 3:30 AM UTC (9 AM IST) | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: golang:1.20 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Setup Go environment | |
uses: actions/setup-go@v4 | |
- name: Run Test and Send Slack Message | |
run: go run main.go prowjob periodic-slack-report | |
env: | |
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }} | |
URL: ${{ secrets.URL }} | |
PROW_URL: ${{ secrets.PROW_URL }} | |
CHANNEL_ID: ${{ secrets.CHANNEL_ID }} |