Investigations #28941
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: 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 |