You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adapt build_loop.yml and update.yml to be run in an "actions" branch
to be set as default, and used to trigger scheduled builds of the main branch.
Empty commits are added to an "actions" branch only (must be created by the user and set as default) to keep this branch "alive" and allow scheduled workflows to run uninterrupted (max 60 days of inactivity).
The empty commits will not be included in the resulting TestFlight builds of main.
Removed conditionals regarding LoopKit repository.
Copy file name to clipboardExpand all lines: .github/workflows/update.yml
+12-7Lines changed: 12 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,22 @@
1
1
name: 'Auto-update'
2
2
3
+
# Runs only on schedule for the default branch
4
+
# TARGET_BRANCH should be set as default
5
+
# Syncs the target branch with upstream
6
+
# Checks for activity and creates empty commits to TARGET_BRANCH as needed after 'time_elapsed' days of inactivity
7
+
# Launches the build workflow if new commits are found.
8
+
# The build workflow syncs and builds the main branch and uploads to TestFlight
9
+
3
10
on:
11
+
workflow_dispatch:
4
12
schedule:
5
13
- cron: '0 7 * * 1,4'
6
14
# scheduled at 07:00 every Monday and Thursday
7
15
8
-
workflow_dispatch: # click the button on Github repo!
9
-
10
16
env:
11
17
UPSTREAM_REPO: LoopKit/LoopWorkspace
12
18
UPSTREAM_BRANCH: main
13
-
TARGET_BRANCH: main
19
+
TARGET_BRANCH: actions # target branch on fork to be kept "alive" for running scheduled workflows (repo activity required at least every 60 days for scheduled workflows to remain active)
0 commit comments