Upload Datasets #38
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: Upload Datasets | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "15 2 1 */2 *" | |
env: | |
# we are not using an official share URL from KDrive. We found it by analyzing the http requests. | |
# we hope it will continue to work in the future. | |
dataset_download_address: "https://kdrive.infomaniak.com/2/app/975517/share/90b05176-4499-489d-a7a9-96b395df80ab/files/24562/download" | |
jobs: | |
get_artifacts: | |
name: Get Datasets | |
runs-on: ubuntu-latest | |
steps: | |
- name: Downloading datasets | |
timeout-minutes: 10 | |
run: | | |
curl -L -o datasets.zip $dataset_download_address | |
mkdir datasets && cd datasets && unzip ../datasets.zip | |
- name: Uploading datasets to storage | |
uses: actions/upload-artifact@master | |
with: | |
name: datasets | |
path: datasets |