add json logging and ci error handling

This commit is contained in:
Cloudburst 2022-08-19 13:42:29 +02:00 committed by GitHub
parent 8d84a80740
commit b8745441c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -14,3 +14,8 @@ jobs:
run: |
wget "https://jitpack.io/com/github/recloudstream/gradle/${GITHUB_REF##*/}-${SHORT_SHA}-1/build.log" -T 300
cat build.log
- name: Check status
run: |
if grep -q "FAILURE: Build failed with an exception." build.log; then
echo "::error::Jitpack build failed with an exception." && exit 1
fi

View file

@ -33,5 +33,7 @@ abstract class MakePluginsJsonTask : DefaultTask() {
.build()
).toPrettyString()
)
logger.lifecycle("Created ${outputFile.asFile.get()}")
}
}