Skip to content
27 changes: 27 additions & 0 deletions workflowhub-import/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "import workflowhub"
description: "WorkflowHub bulk import"

inputs:
repo-user:
description: "User that commits modifications"
required: true
repo-token:
description: "GitHub token to commit modifications"
required: true

runs:
using: "composite"
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install dependencies
run: pip install -r ${{ github.action_path }}/requirements.txt
shell: bash

- name: import workflowhub data using the API
run: |
python ${{ github.action_path }}/workflowhub-import.py --content-dir ${{ github.workspace }}
shell: bash
2 changes: 2 additions & 0 deletions workflowhub-import/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requests
boltons
Loading
Loading