Skip to content

Update junit5 monorepo to v5.11.0 #556

Update junit5 monorepo to v5.11.0

Update junit5 monorepo to v5.11.0 #556

Workflow file for this run

name: Java CI
on:
pull_request:
branches:
- master
push:
branches:
- master
- refs/tags/*
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Build
run: ./gradlew check
- name: Release
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
if: startsWith(github.ref, 'refs/tags')