Run specific project data extraction #10
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: Run specific project data extraction | |
on: | |
workflow_dispatch: | |
inputs: | |
project_ids: | |
description: 'Enter space-separated project IDs (e.g., "123 456 789")' | |
required: true | |
tasking_manager_api_key: | |
description: "Enter the TASKING MANAGER API KEY (leave blank if not applicable)" | |
required: false | |
jobs: | |
Run-Manual-TM-Projects-Report: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Fetch specified projects | |
run: python tm_extractor.py --projects ${{ github.event.inputs.project_ids }} | |
env: | |
RAWDATA_API_AUTH_TOKEN: ${{ secrets.RAWDATA_API_AUTH_TOKEN }} | |
TASKING_MANAGER_API_KEY: ${{ github.event.inputs.tasking_manager_api_key || 'None' }} |