diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 5a9aa22..6d64b33 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -5,6 +5,7 @@ on: branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: # Jobs build jobs: @@ -23,11 +24,20 @@ jobs: - name: Install Task uses: arduino/setup-task@v2 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: Install Python dependencies + run: | + pip install canonicaljson + - name: Get dependencies run: task init - name: Pull latest spec - run: task pull-api + run: task build-api-spec - name: Generate SDK run: task build diff --git a/Taskfile.yaml b/Taskfile.yaml index fdd655f..e781582 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -72,6 +72,7 @@ tasks: # language=bash - | echo -n "Pulling the latest OpenAPI spec... " + mkdir -p "{{.DIR_ARTIFACTS}}" curl -s "${HYPERSTACK_API_SPEC_ADDRESS}" > "{{.API_SPEC_PATH}}" echo "done" echo -n "Fixing api spec... "