1
0
mirror of synced 2026-01-26 04:12:03 +00:00

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
This commit is contained in:
Frank Halasz
2023-06-11 13:40:38 -07:00
committed by GitHub
parent 1af56ddaa2
commit e067e02dde

View File

@@ -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
######################################################################################