File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 11
11
description : Upload the AAR to maven staging repository
12
12
required : false
13
13
type : boolean
14
+ schedule :
15
+ - cron : 0 10 * * *
14
16
15
17
concurrency :
16
18
group : ${{ github.workflow }}-${{ github.ref }}
26
28
shell : bash
27
29
run : |
28
30
VERSION="${{ inputs.version }}"
31
+ if [ -z "$VERSION" ]; then
32
+ echo "No version name specified. Will create a snapshot AAR"
33
+ exit 0
34
+ fi
29
35
if curl -I "https://ossci-android.s3.amazonaws.com/executorch/release/${VERSION}/executorch.aar" | grep "200 OK"; then
30
36
echo "AAR already exists at https://ossci-android.s3.amazonaws.com/executorch/release/${VERSION}/executorch.aar"
31
37
echo "Will skip build/upload"
@@ -107,6 +113,8 @@ jobs:
107
113
pip install awscli==1.32.18
108
114
AWS_CMD="aws s3 cp"
109
115
VERSION="${{ inputs.version }}"
110
- VERSION_NAME="${VERSION:-temp_snapshot}"
111
- ${AWS_CMD} executorch.aar s3://ossci-android/executorch/release/${VERSION_NAME}/executorch.aar --acl public-read
112
- ${AWS_CMD} executorch.aar.sha256sums s3://ossci-android/executorch/release/${VERSION_NAME}/executorch.aar.sha256sums --acl public-read
116
+ if [ -z "$VERSION" ]; then
117
+ VERSION="snapshot-$(date +"%Y%m%d")"
118
+ fi
119
+ ${AWS_CMD} executorch.aar s3://ossci-android/executorch/release/${VERSION}/executorch.aar --acl public-read
120
+ ${AWS_CMD} executorch.aar.sha256sums s3://ossci-android/executorch/release/${VERSION}/executorch.aar.sha256sums --acl public-read
You can’t perform that action at this time.
0 commit comments