Update main.yml (#33)

* Update main.yml

* Update Dockerfile
This commit is contained in:
Jonathon Broughton
2025-02-18 08:07:09 +00:00
committed by GitHub
parent b071380a4f
commit 1ae3372f42
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ jobs:
- name: Extract functionInputSchema
id: extract_schema
run: |
python main.py generate_schema "${{ env.FUNCTION_SCHEMA_FILE_NAME }}"
python main.py generate_schema "${HOME}/${{ env.FUNCTION_SCHEMA_FILE_NAME }}"
- name: Verify functionSchema.json exists
run: ls -lah functionSchema.json
@@ -42,5 +42,5 @@ jobs:
speckle_automate_url: ${{ env.SPECKLE_AUTOMATE_URL || 'https://automate.speckle.dev' }}
speckle_token: ${{ secrets.SPECKLE_FUNCTION_TOKEN }}
speckle_function_id: ${{ secrets.SPECKLE_FUNCTION_ID }}
speckle_function_input_schema_file_path: ${{ env.FUNCTION_SCHEMA_FILE_NAME }}
speckle_function_input_schema_file_path: "${HOME}/${{ env.FUNCTION_SCHEMA_FILE_NAME }}"
speckle_function_command: 'python -u main.py run'
+1 -1
View File
@@ -9,7 +9,7 @@ COPY . /home/speckle
# Upgrade pip and install dependencies using requirements.txt
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
pip install --no-cache-dir -r /home/speckle/requirements.txt
# Set the entrypoint for running the Speckle function
CMD ["python", "-u", "main.py", "run"]