From e067e02dde5567a2ca56d7f8f87cffc7241ca9b8 Mon Sep 17 00:00:00 2001 From: Frank Halasz Date: Sun, 11 Jun 2023 13:40:38 -0700 Subject: [PATCH] Add on:schedule to buildRelease workflow so that Medley builds happen automatically on Mondays at 1am (#1225) * Add an On:schedule to the build release and docker workflow to build a new release every Monday at 1am * Add an On:schedule to the build release and docker workflow to build a new release every Monday at 9am UTC (1am or 2am Pacfic time, depending on daylight savings --- .github/workflows/buildReleaseInclDocker.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/buildReleaseInclDocker.yml b/.github/workflows/buildReleaseInclDocker.yml index c45fc532..cfc9aa42 100644 --- a/.github/workflows/buildReleaseInclDocker.yml +++ b/.github/workflows/buildReleaseInclDocker.yml @@ -18,6 +18,9 @@ name: "Build/Push Release & Docker" # Run this workflow on ... on: + schedule: + - cron: '0 9 * * 1' + workflow_dispatch: inputs: draft: @@ -53,7 +56,7 @@ on: defaults: run: shell: bash - + # Jobs that compose this workflow jobs: @@ -72,17 +75,14 @@ jobs: steps: - id: one run: > - if [ '${{ toJSON(inputs) }}' = 'null' ]; + if [ '${{ toJSON(inputs) }}' != 'null' ]; then - echo "workflow_dispatch"; - echo "draft=${{ github.event.inputs.draft }}" >> $GITHUB_OUTPUT; - echo "force=${{ github.event.inputs.force }}" >> $GITHUB_OUTPUT; + echo "draft=${{ inputs.draft }}" >> $GITHUB_OUTPUT; + echo "force=${{ inputs.force }}" >> $GITHUB_OUTPUT; else - echo "workflow_call"; - echo "draft=${{ inputs.draft }}" >> $GITHUB_OUTPUT; - echo "force=${{ inputs.force }}" >> $GITHUB_OUTPUT; + echo "draft=false" >> $GITHUB_OUTPUT; + echo "force=false" >> $GITHUB_OUTPUT; fi - ######################################################################################