6 Commits

Author SHA1 Message Date
Jonathon Broughton b45e657e6a Update commit_id to use the version_id from the payload
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
The code change updates the commit_id in the commit_details dictionary to use the version_id from the payload instead of using the project_id. This ensures that the correct version is used for committing changes.
2024-08-03 21:24:11 +01:00
Jonathon Broughton ca22b093f3 Merge remote-tracking branch 'origin/main'
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
2024-08-03 20:05:02 +01:00
Jonathon Broughton 9298d8a14e Print automation run data in automate_function
- Add print statement to display automation run data
- Helps with debugging and understanding the context of the function
2024-08-03 20:04:36 +01:00
dependabot[bot] 8126ee5776 Bump actions/checkout from 3.4.0 to 4.1.7 (#1)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 4.1.7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.4.0...v4.1.7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-03 19:42:16 +01:00
dependabot[bot] e14ad4e801 Bump specklesystems/speckle-automate-github-composite-action (#2)
Bumps [specklesystems/speckle-automate-github-composite-action](https://github.com/specklesystems/speckle-automate-github-composite-action) from 0.7.4 to 0.8.1.
- [Release notes](https://github.com/specklesystems/speckle-automate-github-composite-action/releases)
- [Commits](https://github.com/specklesystems/speckle-automate-github-composite-action/compare/0.7.4...0.8.1)

---
updated-dependencies:
- dependency-name: specklesystems/speckle-automate-github-composite-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-03 19:42:00 +01:00
Jonathon Broughton 3baff49f80 Create dependabot.yml 2024-08-03 19:40:12 +01:00
3 changed files with 11 additions and 3 deletions
+6
View File
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
+2 -2
View File
@@ -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 }}
+3 -1
View File
@@ -91,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,
}