Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b45e657e6a | |||
| ca22b093f3 | |||
| 9298d8a14e | |||
| 8126ee5776 | |||
| e14ad4e801 | |||
| 3baff49f80 | |||
| f08d75b3a6 |
@@ -0,0 +1,6 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
@@ -11,7 +11,7 @@ jobs:
|
||||
FUNCTION_SCHEMA_FILE_NAME: functionSchema.json
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3.4.0
|
||||
- uses: actions/checkout@v4.1.7
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
run: |
|
||||
python main.py generate_schema ${HOME}/${{ env.FUNCTION_SCHEMA_FILE_NAME }}
|
||||
- name: Speckle Automate Function - Build and Publish
|
||||
uses: specklesystems/speckle-automate-github-composite-action@0.7.4
|
||||
uses: specklesystems/speckle-automate-github-composite-action@0.8.1
|
||||
with:
|
||||
speckle_automate_url: ${{ env.SPECKLE_AUTOMATE_URL || 'https://automate.speckle.dev' }}
|
||||
speckle_token: ${{ secrets.SPECKLE_FUNCTION_TOKEN }}
|
||||
|
||||
@@ -20,15 +20,11 @@ from Objects.objects import (
|
||||
from Utilities.reporting import Report
|
||||
from Utilities.utilities import Utilities
|
||||
|
||||
|
||||
## new render materials for objects passing/failing
|
||||
## swap those into the original commit object
|
||||
## send that back to the server
|
||||
|
||||
|
||||
import specklepy
|
||||
print(specklepy.__version__)
|
||||
|
||||
|
||||
class FunctionInputs(AutomateBase):
|
||||
"""Definition of user inputs for this function.
|
||||
|
||||
@@ -95,9 +91,11 @@ def automate_function(
|
||||
threshold = function_inputs.density_level
|
||||
data, all_densities, all_areas = density_summary(health_objects)
|
||||
|
||||
print(dir(automate_context.automation_run_data))
|
||||
|
||||
commit_details = {
|
||||
"stream_id": automate_context.automation_run_data.project_id,
|
||||
"commit_id": automate_context.automation_run_data.version_id,
|
||||
"commit_id": automate_context.automation_run_data.triggers[0].payload.version_id,
|
||||
"server_url": automate_context.automation_run_data.speckle_server_url,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user