Box Dataset Info #4
This file contains hidden or 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: Box Dataset Info | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| dataset_name: | |
| description: "Name of the dataset to inspect (leave empty to list all)" | |
| required: false | |
| default: "" | |
| jobs: | |
| box-info: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install "boxsdk[jwt]==3.14.0" | |
| python -c "import boxsdk; print(f'boxsdk version: {boxsdk.__version__}')" | |
| - name: Run Box Info Script | |
| env: | |
| BOX_CLIENT_SDK_CONFIG: ${{ secrets.BOX_CLIENT_SDK_CONFIG }} | |
| BOX_FOLDER_ID: ${{ secrets.BOX_MEG_DATA_PARENT_FOLDER_ID }} | |
| run: | | |
| python pipeline/box_info/get_box_dataset_info.py \ | |
| --box-folder-id "$BOX_FOLDER_ID" \ | |
| --dataset-name "${{ github.event.inputs.dataset_name }}" |