File tree 1 file changed +16
-5
lines changed
1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
- name : Weekly debug
1
+ name : Monthly debug
2
2
3
3
on :
4
4
workflow_dispatch : # to be able to run it manually
5
5
schedule :
6
- - cron : ' 53 21 9,18, 27 * *' # on 12, 27 every month
6
+ - cron : ' 53 21 27 * *' # on 27 every month
7
7
8
8
jobs :
9
9
evaluateChanges :
19
19
20
20
21
21
build :
22
- name : Weeklies
22
+ name : Monthlies
23
23
runs-on : ubuntu-latest
24
24
needs : evaluateChanges
25
25
if : needs.evaluateChanges.outputs.SHOULD_BUILD == 'true'
@@ -42,10 +42,12 @@ jobs:
42
42
- name : Build & notify
43
43
if : env.TELEGRAM_CHAT_ID && env.SCHEDULED_BUILD_VARIANT && env.TELEGRAM_TOKEN
44
44
run : |
45
+ # for now, support just one build variant
45
46
for TASK in $SCHEDULED_BUILD_VARIANT; do
46
47
./gradlew $TASK
47
- apk_path="$(find . -type f -iname *.apk)"
48
+ apk_path="$(find . -type f -iname ' *.apk' | head -n1 )"
48
49
echo $apk_path
50
+ echo "APKFILE=${apk_path}" >> $GITHUB_ENV
49
51
curl https://api.telegram.org/bot$TELEGRAM_TOKEN/sendDocument \
50
52
-F chat_id="$TELEGRAM_CHAT_ID" \
51
53
-F "caption=Size: $(ls -l --block-size=K "$apk_path" | awk '{ print $5 }')" \
59
61
if : success()
60
62
with :
61
63
name : rdns-${{ github.sha }}
62
- path : app-*.apk
64
+ path : ${{ env.APKFILE }}
63
65
if-no-files-found : error
66
+
67
+ # github.com/softprops/action-gh-release
68
+ - name : Release
69
+ uses : softprops/action-gh-release@v1
70
+ with :
71
+ prerelease : true
72
+ files : |
73
+ ${{ env. APKFILE }}
74
+
You can’t perform that action at this time.
0 commit comments