mirror of
https://github.com/recloudstream/gradle.git
synced 2024-08-14 23:56:59 +00:00
21 lines
No EOL
666 B
YAML
21 lines
No EOL
666 B
YAML
name: Start Jitpack
|
|
|
|
# Controls when the workflow will run
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Add SHORT_SHA env property with commit short sha
|
|
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-10`" >> $GITHUB_ENV
|
|
- name: Fetch build.log
|
|
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 |