FACT-1906_2 poke (#433) #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |