gradle/.github/workflows/jitpack.yml

21 lines
666 B
YAML
Raw Normal View History

2022-08-06 16:52:28 +00:00
name: Start Jitpack
# Controls when the workflow will run
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
2022-08-06 18:41:18 +00:00
- name: Add SHORT_SHA env property with commit short sha
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-10`" >> $GITHUB_ENV
2022-08-06 16:52:28 +00:00
- name: Fetch build.log
run: |
2022-08-06 18:41:18 +00:00
wget "https://jitpack.io/com/github/recloudstream/gradle/${GITHUB_REF##*/}-${SHORT_SHA}-1/build.log" -T 300
2022-08-06 16:52:28 +00:00
cat build.log
2022-08-19 11:42:29 +00:00
- 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