Skip to content

FACT-1906_2 poke (#433) #33

FACT-1906_2 poke (#433)

FACT-1906_2 poke (#433) #33

Workflow file for this run

name: Trigger JitPack Build
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Trigger Build in JitPack
run: |
echo "Triggering JitPack build"
PACKAGES_URL="https://jitpack.io/com/github/${GITHUB_REPOSITORY}/${GITHUB_REF#refs/tags/}/"
# Try the URL 3 times before failing
count=1
until [[ $count -gt 3 ]] || [[ ${FILE_COUNT:-0} -gt 1 ]]; do
echo "Attempt ${count}/3"
FILES=$(curl -sS --max-time 900 ${PACKAGES_URL})
FILE_COUNT=$(echo ${FILES} | wc -w | xargs)
let count+=1
sleep 5
done
echo "::group::Files Available"
echo ${FILES}
echo "::endgroup::"
if [[ $count -gt 3 ]]; then exit 1; fi