Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 54eab76

Browse files
committed
feat(shadow jobs): prepare for revival
- Bump versions - Workaround perma-fail on AGP 8.x - Adjust schedule to be weekly - Report exit state to healthchecks.io
1 parent 521389d commit 54eab76

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/shadow_job.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
workflow_dispatch:
33
schedule:
4-
- cron: '0 0 * * *'
4+
- cron: '0 12 * * 1'
55

66
env:
77
SENTRY_DSN: 'https://[email protected]/project_id'
@@ -14,8 +14,8 @@ jobs:
1414
matrix:
1515
agp-version:
1616
- 7.3.1
17-
- 7.4.0-beta03
18-
- 8.0.0-alpha06
17+
- 7.4.0-rc01
18+
- 8.0.0-alpha09
1919
gradle-version:
2020
- wrapper
2121
- nightly
@@ -38,6 +38,10 @@ jobs:
3838
- name: Copy CI gradle.properties
3939
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
4040

41+
- name: Workaround AGP 8.x deprecations
42+
if: startsWith(matrix.agp-version, '8.0.0')
43+
run: sed -i 's/android.disableAutomaticComponentCreation=true//' gradle.properties
44+
4145
- name: Run checks
4246
uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef # v2.3.3
4347
env:
@@ -46,3 +50,19 @@ jobs:
4650
with:
4751
arguments: check
4852
gradle-home-cache-cleanup: true
53+
54+
- name: Report failure to healthchecks.io
55+
if: ${{ failure() }}
56+
env:
57+
HC_PING_SLUG: ${{ secrets.HC_PING_SLUG }}
58+
AGP_VERSION: ${{ matrix.agp-version }}
59+
run: |
60+
curl --retry 3 --data-raw "AGP: ${AGP_VERSION}" "https://hc-ping.com/${HC_PING_SLUG}/fail"
61+
62+
- name: Report success to healthchecks.io
63+
if: ${{ success() }}
64+
env:
65+
HC_PING_SLUG: ${{ secrets.HC_PING_SLUG }}
66+
AGP_VERSION: ${{ matrix.agp-version }}
67+
run: |
68+
curl --retry 3 --data-raw "AGP: ${AGP_VERSION}" "https://hc-ping.com/${HC_PING_SLUG}"

0 commit comments

Comments
 (0)