-
Notifications
You must be signed in to change notification settings - Fork 153
31 lines (31 loc) · 1.01 KB
/
override-bot.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
name: Override Bot
on:
issue_comment:
types: [created]
schedule:
- cron: '0/10 * * * *'
workflow_dispatch:
jobs:
override:
name: Check for redundant CI lanes for override
if: (github.event_name != 'issue_comment') ||
((github.event.issue.pull_request != '') && (contains(github.event.comment.body, '/override-bot')) && (github.repository == 'kubevirt/hyperconverged-cluster-operator'))
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python3
uses: actions/setup-python@v5
with:
python-version: '3.13'
architecture: 'x64'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests PyGithub
- name: Override redundant lanes across open PRs
run: python ./automation/override-bot/override-bot.py
env:
HCO_BOT_TOKEN: ${{ secrets.HCO_BOT_TOKEN }}