Skip to content

Commit 19bcd06

Browse files
authored
Add automatic full CI builds that run twice a week (#413)
Signed-off-by: Adam Glustein <[email protected]>
1 parent 01b077d commit 19bcd06

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
name: 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+
310
on:
411
push:
512
branches:
@@ -26,6 +33,8 @@ on:
2633
required: false
2734
type: boolean
2835
default: false
36+
schedule:
37+
- cron: '25 8 * * 1,4'
2938

3039
concurrency:
3140
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@@ -60,7 +69,7 @@ jobs:
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
#......................................................#

0 commit comments

Comments
 (0)