Skip to content

Commit 624e2b8

Browse files
authored
Merge pull request #6 from loopandlearn/export-settings
Export settings
2 parents b98e26d + 438a8cd commit 624e2b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+4038
-616
lines changed

.github/workflows/build_LoopFollow.yml

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
name: 4. Build Loop Follow
2-
run-name: Build Loop Follow (${{ github.ref_name }})
1+
name: 4. Build LoopFollow
2+
run-name: Build LoopFollow (${{ github.ref_name }})
33
on:
44
workflow_dispatch:
5-
6-
## Remove the "#" sign from the beginning of the line below to get automated builds on push (code changes in your repository)
7-
#push:
8-
95
schedule:
10-
# avoid starting an action at xx:00 when GitHub resources are impacted
11-
- cron: "17 12 * * 3" # Checks for updates at 12:17 UTC every Wednesday
12-
- cron: "17 10 1 * *" # Builds the app on the 1st of every month at 10:17 UTC
6+
# Check for updates every Sunday
7+
# Later logic builds if there are updates or if it is the 2nd Sunday of the month
8+
- cron: "17 10 * * 0" # Sunday at UTC 10:17
139

1410
env:
1511
UPSTREAM_REPO: loopandlearn/LoopFollow
@@ -19,6 +15,26 @@ env:
1915
ALIVE_BRANCH_DEV: alive-dev
2016

2117
jobs:
18+
19+
# Set a logic flag if this is the second instance of this day-of-week in this month
20+
day_in_month:
21+
runs-on: ubuntu-latest
22+
name: Check day in month
23+
outputs:
24+
IS_SECOND_IN_MONTH: ${{ steps.date-check.outputs.is_second_instance }}
25+
26+
steps:
27+
- id: date-check
28+
name: Check if this is the second time this day-of-week happens this month
29+
run: |
30+
DAY_OF_MONTH=$(date +%-d)
31+
WEEK_OF_MONTH=$(( ($(date +%-d) - 1) / 7 + 1 ))
32+
if [[ $WEEK_OF_MONTH -eq 2 ]]; then
33+
echo "is_second_instance=true" >> "$GITHUB_OUTPUT"
34+
else
35+
echo "is_second_instance=false" >> "$GITHUB_OUTPUT"
36+
fi
37+
2238
# Checks if Distribution certificate is present and valid, optionally nukes and
2339
# creates new certs if the repository variable ENABLE_NUKE_CERTS == 'true'
2440
check_certs:
@@ -190,15 +206,15 @@ jobs:
190206
# Builds LoopFollow
191207
build:
192208
name: Build
193-
needs: [check_certs, check_alive_and_permissions, check_latest_from_upstream]
209+
needs: [check_certs, check_alive_and_permissions, check_latest_from_upstream, day_in_month]
194210
runs-on: macos-15
195211
permissions:
196212
contents: write
197213
if:
198-
| # runs if started manually, or if sync schedule is set and enabled and scheduled on the first Saturday each month, or if sync schedule is set and enabled and new commits were found
214+
| # builds with manual start; if automatic: once a month or when new commits are found
199215
github.event_name == 'workflow_dispatch' ||
200216
(needs.check_alive_and_permissions.outputs.WORKFLOW_PERMISSION == 'true' &&
201-
(vars.SCHEDULED_BUILD != 'false' && github.event.schedule == '17 10 1 * *') ||
217+
(vars.SCHEDULED_BUILD != 'false' && needs.day_in_month.outputs.IS_SECOND_IN_MONTH == 'true') ||
202218
(vars.SCHEDULED_SYNC != 'false' && needs.check_latest_from_upstream.outputs.NEW_COMMITS == 'true' )
203219
)
204220
steps:

Config.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
unique_id = ${DEVELOPMENT_TEAM}
77

88
//Version (DEFAULT)
9-
LOOP_FOLLOW_MARKETING_VERSION = 3.2.0
9+
LOOP_FOLLOW_MARKETING_VERSION = 4.1.0

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ source "https://rubygems.org"
44

55
# This branch uses fastlane 2.228.0 plus pr 29596
66
gem "fastlane", git: "https://github.com/loopandlearn/fastlane.git", ref: "a670d4b092b274d58ebb5497126e47fc6a84f533"
7+
gem "rexml", ">=3.4.2"

Gemfile.lock

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,27 @@ GEM
5858
artifactory (3.0.17)
5959
atomos (0.1.3)
6060
aws-eventstream (1.4.0)
61-
aws-partitions (1.1116.0)
62-
aws-sdk-core (3.225.2)
61+
aws-partitions (1.1163.0)
62+
aws-sdk-core (3.232.0)
6363
aws-eventstream (~> 1, >= 1.3.0)
6464
aws-partitions (~> 1, >= 1.992.0)
6565
aws-sigv4 (~> 1.9)
6666
base64
67+
bigdecimal
6768
jmespath (~> 1, >= 1.6.1)
6869
logger
69-
aws-sdk-kms (1.105.0)
70-
aws-sdk-core (~> 3, >= 3.225.0)
70+
aws-sdk-kms (1.112.0)
71+
aws-sdk-core (~> 3, >= 3.231.0)
7172
aws-sigv4 (~> 1.5)
72-
aws-sdk-s3 (1.189.1)
73-
aws-sdk-core (~> 3, >= 3.225.0)
73+
aws-sdk-s3 (1.199.0)
74+
aws-sdk-core (~> 3, >= 3.231.0)
7475
aws-sdk-kms (~> 1)
7576
aws-sigv4 (~> 1.5)
7677
aws-sigv4 (1.12.1)
7778
aws-eventstream (~> 1, >= 1.0.2)
7879
babosa (1.0.4)
7980
base64 (0.3.0)
81+
bigdecimal (3.2.3)
8082
claide (1.1.0)
8183
colored (1.2)
8284
colored2 (3.1.2)
@@ -105,10 +107,10 @@ GEM
105107
faraday (>= 0.8.0)
106108
http-cookie (~> 1.0.0)
107109
faraday-em_http (1.0.0)
108-
faraday-em_synchrony (1.0.0)
110+
faraday-em_synchrony (1.0.1)
109111
faraday-excon (1.1.0)
110112
faraday-httpclient (1.0.1)
111-
faraday-multipart (1.1.0)
113+
faraday-multipart (1.1.1)
112114
multipart-post (~> 2.0)
113115
faraday-net_http (1.0.2)
114116
faraday-net_http_persistent (1.2.0)
@@ -163,13 +165,13 @@ GEM
163165
httpclient (2.9.0)
164166
mutex_m
165167
jmespath (1.6.2)
166-
json (2.12.2)
167-
jwt (2.10.1)
168+
json (2.15.0)
169+
jwt (2.10.2)
168170
base64
169171
logger (1.7.0)
170172
mini_magick (4.13.2)
171173
mini_mime (1.1.5)
172-
multi_json (1.15.0)
174+
multi_json (1.17.0)
173175
multipart-post (2.4.1)
174176
mutex_m (0.3.0)
175177
nanaimo (0.4.0)
@@ -185,15 +187,15 @@ GEM
185187
trailblazer-option (>= 0.1.1, < 0.2.0)
186188
uber (< 0.2.0)
187189
retriable (3.1.2)
188-
rexml (3.4.1)
190+
rexml (3.4.4)
189191
rouge (3.28.0)
190192
ruby2_keywords (0.0.5)
191193
rubyzip (2.4.1)
192194
security (0.1.5)
193-
signet (0.20.0)
195+
signet (0.21.0)
194196
addressable (~> 2.8)
195197
faraday (>= 0.17.5, < 3.a)
196-
jwt (>= 1.5, < 3.0)
198+
jwt (>= 1.5, < 4.0)
197199
multi_json (~> 1.10)
198200
simctl (1.6.10)
199201
CFPropertyList
@@ -233,6 +235,7 @@ PLATFORMS
233235

234236
DEPENDENCIES
235237
fastlane!
238+
rexml (>= 3.4.2)
236239

237240
BUNDLED WITH
238241
2.6.2

0 commit comments

Comments
 (0)