-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (39 loc) · 1.11 KB
/
check_workflow.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
38
39
40
41
name: check_workflow_deployment
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
jobs:
check_workflow_deployment:
runs-on: ubuntu-22.04
strategy:
matrix:
workflow_name:
- BuildTest
- Release
steps:
- uses: actions/checkout@v2-beta
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: install depends
run: pip3 install pyyaml
- name: download repos file
run: gh run download -n robotx.repos
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: OUXT-Polaris/ouxt_automation
- name: check package deployment
run: |
python3 scripts/check_workflow_deployment.py robotx.repos ${{ matrix.workflow_name }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: OUXT-Polaris/ouxt_automation
- name: Slack Notification on Failure
uses: rtCamp/[email protected]
if: failure()
env:
SLACK_CHANNEL: ci
SLACK_TITLE: Problem was found in checking ${{ matrix.workflow_name }} workflow
SLACK_COLOR: danger