File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ inputs:
1111 description : " The version of Python to use, such as 3.9"
1212 required : true
1313 type : string
14+ kaggle-json :
15+ description : " Kaggle JSON credentials for accessing datasets"
16+ required : true
17+ type : string
1418
1519runs :
1620 using : " composite"
2428 run : |
2529 echo '{"subscription_id": "ADD-ME-PLASE", "resource_group": "ubc-cdl10", "workspace_name": "ubc-cdl10"}' > config.json
2630
31+ # --------------------------------------------------------------------------------
32+ # Add kaggle.json for accessing Kaggle datasets
33+ # example: {"username":"lawrencemcdaniel","key":"2f00 --32 characters -- 26a6"}
34+ # --------------------------------------------------------------------------------
35+ - name : Add kaggle.json
36+ shell : bash
37+ run : |
38+ mkdir -p ~/.kaggle
39+ echo "${{ inputs.kaggle-json }}" | base64 --decode > ~/.kaggle/kaggle.json
40+ chmod 600 ~/.kaggle/kaggle.json
41+
2742 - name : Check for azureml-core in requirements
2843 shell : bash
2944 run : |
Original file line number Diff line number Diff line change 3333 uses : ./.github/actions/tests/python
3434 with :
3535 python-version : " ${{ env.python-version}}"
36+ kaggle-json : " ${{ secrets.KAGGLE_JSON }}"
You can’t perform that action at this time.
0 commit comments