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 1111 description : Upload the AAR to maven staging repository
1212 required : false
1313 type : boolean
14+ schedule :
15+ - cron : 0 10 * * *
1416
1517concurrency :
1618 group : ${{ github.workflow }}-${{ github.ref }}
2628 shell : bash
2729 run : |
2830 VERSION="${{ inputs.version }}"
31+ if [ -z "$VERSION" ]; then
32+ echo "No version name specified. Will create a snapshot AAR"
33+ exit 0
34+ fi
2935 if curl -I "https://ossci-android.s3.amazonaws.com/executorch/release/${VERSION}/executorch.aar" | grep "200 OK"; then
3036 echo "AAR already exists at https://ossci-android.s3.amazonaws.com/executorch/release/${VERSION}/executorch.aar"
3137 echo "Will skip build/upload"
@@ -107,6 +113,8 @@ jobs:
107113 pip install awscli==1.32.18
108114 AWS_CMD="aws s3 cp"
109115 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