mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-10-03 19:36:30 +08:00
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
name: conan-package-resources-and-notify
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/conan-package-resources.yml'
|
|
- 'conandata.yml'
|
|
- 'resources/definitions/**'
|
|
- 'resources/extruders/**'
|
|
- 'resources/images/**'
|
|
- 'resources/intent/**'
|
|
- 'resources/meshes/**'
|
|
- 'resources/quality/**'
|
|
- 'resources/variants/**'
|
|
- 'resources/conanfile.py'
|
|
branches:
|
|
- 'main'
|
|
- 'CURA-*'
|
|
- 'PP-*'
|
|
- 'NP-*'
|
|
- '[0-9].[0-9]*'
|
|
- '[0-9].[0-9][0-9]*'
|
|
|
|
jobs:
|
|
conan-package:
|
|
name: Create Conan Package
|
|
uses: ultimaker/cura-workflows/.github/workflows/conan-package.yml@main
|
|
with:
|
|
conan_recipe_root: "./resources/"
|
|
platform_windows: false
|
|
platform_mac: false
|
|
install_system_dependencies: false
|
|
secrets: inherit
|
|
|
|
notify-dependent-package:
|
|
name: Notify Dependent Repository
|
|
needs: conan-package
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Notify Dependent Repository
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.DEPENDENT_REPO_TOKEN }}
|
|
run: |
|
|
curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
|
|
-H "Accept: application/vnd.github.v3+json" \
|
|
https://api.github.com/repos/DEPENDENT_ORG/DEPENDENT_REPO/dispatches \
|
|
-d '{"event_type": "dependency-version-update", "client_payload": { "version": "${{ needs.conan-package.outputs.version_base }}", "full_version": "${{ needs.conan-package.outputs.version_full }}", "package_name": "${{ needs.conan-package.outputs.package_name }}" }}'
|