File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 11name : Build Status
22
3+ env :
4+ # Run full CI Monday and Thursday at 3:25am EST (08:25 UTC)
5+ # Note: do not run scheduled jobs on the hour exactly, per:
6+ # https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
7+ # GitHub Actions schedules can sometimes delay by up to 15 minutes due to platform load
8+ FULL_CI_SCHEDULE : ' 25 8 * * 1,4'
9+
310on :
411 push :
512 branches :
2633 required : false
2734 type : boolean
2835 default : false
36+ schedule :
37+ - cron : ' 25 8 * * 1,4'
2938
3039concurrency :
3140 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
6069
6170 outputs :
6271 COMMIT_MESSAGE : ${{ steps.setup.outputs.COMMIT_MSG }}
63- FULL_RUN : ${{ steps.setuppush.outputs.FULL_RUN || steps.setuppr.outputs.FULL_RUN || steps.setupmanual.outputs.FULL_RUN }}
72+ FULL_RUN : ${{ steps.setuppush.outputs.FULL_RUN || steps.setuppr.outputs.FULL_RUN || steps.setupmanual.outputs.FULL_RUN || steps.setupschedule.outputs.FULL_RUN }}
6473
6574 steps :
6675 - name : Checkout
@@ -109,6 +118,17 @@ jobs:
109118 env :
110119 FULL_RUN : ${{ github.event.inputs.ci-full }}
111120 if : ${{ github.event_name == 'workflow_dispatch' }}
121+
122+ - name : Display and Setup Build Args (Schedule)
123+ id : setupschedule
124+ run : |
125+ echo "Commit Message: $COMMIT_MSG"
126+ echo "Full Run: $FULL_RUN"
127+ echo "COMMIT_MSG=$COMMIT_MSG" >> $GITHUB_OUTPUT
128+ echo "FULL_RUN=$FULL_RUN" >> $GITHUB_OUTPUT
129+ env :
130+ FULL_RUN : ${{ github.event.schedule == env.FULL_CI_SCHEDULE }}
131+ if : ${{ github.event_name == 'schedule' }}
112132
113133 # #######################################################
114134 # ......................................................#
You can’t perform that action at this time.
0 commit comments