mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:55:53 +08:00
Merge branch 'main' into CURA-11138-makerbot-cloud-printing
This commit is contained in:
commit
08ebf31d8c
24
.github/workflows/installers.yml
vendored
24
.github/workflows/installers.yml
vendored
@ -31,21 +31,23 @@ on:
|
||||
type: boolean
|
||||
|
||||
schedule:
|
||||
# Daily at 4:15 CET (main-branch) and 9:15 CET (release-branch)
|
||||
- cron: '15 2 * * *'
|
||||
- cron: '15 8 * * *'
|
||||
# Daily at 4:15 CET (main-branch) and 5:15 CET (release-branch)
|
||||
- cron: '15 3 * * *'
|
||||
- cron: '15 4 * * *'
|
||||
|
||||
env:
|
||||
CURA_CONAN_VERSION: ${{ inputs.cura_conan_version || 'cura/latest@ultimaker/testing' }}
|
||||
CONAN_ARGS: ${{ inputs.conan_args || '' }}
|
||||
ENTERPRISE: ${{ inputs.enterprise || false }}
|
||||
STAGING: ${{ inputs.staging || false }}
|
||||
LATEST_RELEASE: '5.6'
|
||||
LATEST_RELEASE_SCHEDULE_HOUR: 4
|
||||
|
||||
jobs:
|
||||
default-values:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
cura_conan_version: ${{ steps.default.outputs.cura_conan_version }}
|
||||
release_tag: ${{ steps.default.outputs.release_tag }}
|
||||
|
||||
steps:
|
||||
- name: Output default values
|
||||
@ -54,16 +56,14 @@ jobs:
|
||||
run: |
|
||||
import os
|
||||
import datetime
|
||||
cura_conan_version = "cura/latest@ultimaker/testing"
|
||||
release_tag = "nightly"
|
||||
|
||||
# Get current UTC time
|
||||
now = datetime.datetime.utcnow()
|
||||
if "${{ github.event_name }}" != "schedule":
|
||||
cura_conan_version = "${{ github.event.inputs.cura_conan_version }}"
|
||||
else:
|
||||
now = datetime.datetime.now()
|
||||
cura_conan_version = "cura/latest@ultimaker/stable" if now.hour == int(os.environ['LATEST_RELEASE_SCHEDULE_HOUR']) else "cura/latest@ultimaker/testing"
|
||||
|
||||
# Check if current hour is 8 and it is a schedule event
|
||||
if "${{ github.event_name }}" == "schedule" and now.hour == 8:
|
||||
cura_conan_version = "cura/latest@ultimaker/stable"
|
||||
release_tag = "nightly-5.6"
|
||||
release_tag = f"nightly-{os.environ['LATEST_RELEASE']}" if "/stable" in cura_conan_version else "nightly"
|
||||
|
||||
# Set cura_conan_version environment variable
|
||||
output_env = os.environ["GITHUB_OUTPUT"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user