-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (38 loc) · 1.23 KB
/
Investigations.yml
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
name: Investigations
on:
schedule:
- cron: '*/9 * * * *'
workflow_dispatch:
jobs:
Investigations:
runs-on: ubuntu-latest
timeout-minutes: 5
environment: CI
steps:
- name: checkout the repo
uses: actions/checkout@v4
- name: Use Python 3.10.8
uses: actions/setup-python@v4
with:
python-version: '3.10.8'
- name: install dependencies
run: |
pip3 install -r requirements.txt
- name: run bot
env:
IDR_API_LEXUS: ${{ secrets.IDR_API_LEXUS }}
IDR_API_HSSD: ${{ secrets.IDR_API_HSSD }}
IDR_API_MHC: ${{ secrets.IDR_API_MHC }}
IDR_API_L4: ${{ secrets.IDR_API_L4 }}
IDR_API_ICS: ${{ secrets.IDR_API_ICS }}
IDR_API_GOSSETT: ${{ secrets.IDR_API_GOSSETT }}
FS_API: ${{ secrets.FS_API }}
run: |
python3 investigations_post.py
- name: commit config
run: |
git config --global user.email "[email protected]"
git config --global user.name "Bot-Parser"
DATE=$(date -Iseconds)
git commit --all --message "Investigations Updated by Bot-Parser on $DATE" || echo "no changes to commit"
git push