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
Copy file name to clipboardExpand all lines: .github/workflows/build_loop.yml
+83-15Lines changed: 83 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -2,39 +2,107 @@ name: 4. Build Loop
2
2
run-name: Build Loop (${{ github.ref_name }})
3
3
on:
4
4
workflow_dispatch:
5
-
workflow_call:
6
5
7
6
## Remove the "#" sign from the beginning of the line below to get automated builds on push (code changes in your repository)
8
7
#push:
9
8
10
9
schedule:
11
-
- cron: '30 04 1 * *'# Runs at 04:30 UTC on the 1st every month
10
+
- cron: '0 04 * * *'# Checks for updates at 04:00 UTC every day
11
+
- cron: '0 04 1 * *'# Builds the app on the 1th every month
12
12
13
13
env:
14
-
BUILD_BRANCH: ${{ github.ref_name }} # branch on fork to build from (relpace with specific branch name if needed)
14
+
UPSTREAM_REPO: LoopKit/LoopWorkspace
15
+
UPSTREAM_BRANCH: ${{ github.ref_name }} # branch on upstream repository to sync from (relpace with specific branch name if needed)
16
+
TARGET_BRANCH: ${{ github.ref_name }} # target branch on fork to be kept in sync, and target branch on upstream to be kept alive (relpace with specific branch name if needed)
17
+
ALIVE_BRANCH: alive
18
+
SYNC_UPSTREAM: 'true'# set to 'false' or 'true' to disable / enable syncing of fork with upstream repository
# Keep repository "alive": add empty commits to ALIVE_BRANCH after "time_elapsed" days of inactivity to avoid inactivation of scheduled workflows
60
+
- name: Keep alive
61
+
uses: gautamkrishnar/keepalive-workflow@v1 # using the workflow with default settings
62
+
with:
63
+
time_elapsed: 20# Time elapsed from the previous commit to trigger a new automated commit (in days)
64
+
22
65
build:
23
66
name: Build
24
-
needs: secrets
25
-
runs-on: macos-12
67
+
needs: check_latest_from_upstream
68
+
runs-on: macos-13
69
+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.schedule == '0 04 1 * *' || needs.check_latest_from_upstream.outputs.NEW_COMMITS == 'true' }} # runs if started manually, or if scheduled on the first each month, or if new commits were found
26
70
steps:
27
-
# Uncomment to manually select latest Xcode if needed
0 commit comments