Update scheduled event conditions in installers.yml

The conditions for the scheduled event in the GitHub installer workflow have been updated. Now it will not only check if the current time is 8 but also if the event is a scheduled one. This ensures the schedule event fires at the right time and under the correct circumstances.
This commit is contained in:
Jelle Spijker 2023-11-01 09:07:27 +01:00
parent fc3985eaa8
commit 56e4f3ffce
No known key found for this signature in database
GPG Key ID: 034D1C0527888B65

View File

@ -60,8 +60,8 @@ jobs:
# Get current UTC time
now = datetime.datetime.utcnow()
# Check if current hour is 8
if now.hour == 8:
# 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"