check_workflow_deployment #1228
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: 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@v4 | |
- 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 |