fix collect raw data #12
Workflow file for this run
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 for new bugs, after 2023 June | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.8 | |
- name: Install Requirements | |
uses: py-actions/py-dependency-install@v4 | |
with: | |
path: Docker/requirements.txt | |
- name: Run Script | |
run: | | |
current_date=$(date -u "+%Y-%m-%d") | |
previous_date=$(date -u -d "$current_date" -d "last month" "+%Y-%m-%d") | |
previous_date="2023-06-01" | |
python collect_raw_data.py -t ${{ secrets.GITHUB_TOKEN }} -f data/existing_repos.json -d $previous_date -e | |
- name: Compare Output, Create Github issue | |
run: | | |
body=$(python debug/iterate_report.py) | |
gh issue create -t "Output of Github Action" -b "$body" -l "auto" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
REPO: ${{ github.repository }} | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: report | |
path: collected/report.json |