-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (34 loc) · 1.28 KB
/
verify-schedule.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Verify
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '30 7 * * 2'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
verify:
uses: ./.github/workflows/verify-workflow.yaml
secrets:
IBMCLOUD_API_KEY: ${{ secrets.IBMCLOUD_API_KEY }}
ENTITLEMENT_KEY: ${{ secrets.ENTITLEMENT_KEY }}
OPENSHIFT_SERVER: ${{ secrets.OPENSHIFT_SERVER }}
OPENSHIFT_USER: apikey
OPENSHIFT_PASSWORD: ${{ secrets.IBMCLOUD_API_KEY }}
GITHUB_PAT: ${{ secrets.TOKEN }}
GITOPS_REPO_TOKEN: ${{ secrets.GITOPS_REPO_TOKEN }}
notify:
needs: [verify]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Notify discord
uses: sarisia/actions-status-discord@v1
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_AUTOMATION_HOOK_URL }}
with:
webhook: ${{ secrets.DISCORD_AUTOMATION_HOOK_URL }}
username: ${{ github.actor }}
title: IBM Cloud Infra Integration Test
description: Scheduled automation test that runs weekly
status: ${{ needs.verify.outputs.status }}