|
|
|
|
@ -39,20 +39,20 @@ jobs:
|
|
|
|
|
# action_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
|
|
|
|
|
details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
|
|
|
|
|
|
|
|
|
|
- name: Wait for cache
|
|
|
|
|
env:
|
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
run: |
|
|
|
|
|
echo "BASELINE: '${BASELINE}'"
|
|
|
|
|
echo "Wating for cache '${BLDCACHE}' ..."
|
|
|
|
|
sleep $(( $RANDOM / 1024 ))
|
|
|
|
|
PROBE="$(gh cache list --limit 300 --repo ${{ github.repository }} | grep -i ${BLDCACHE} || echo '')"
|
|
|
|
|
while [[ -z ${PROBE} ]]; do
|
|
|
|
|
echo "Wating for cache '${BLDCACHE}' ..."
|
|
|
|
|
sleep 30
|
|
|
|
|
PROBE="$(gh cache list --limit 300 --repo ${{ github.repository }} | grep -i ${BLDCACHE} || echo '')"
|
|
|
|
|
done
|
|
|
|
|
echo "Cache available '${BLDCACHE}'"
|
|
|
|
|
# - name: Wait for cache
|
|
|
|
|
# if: ${{ env.BRANCH != 'none' }}
|
|
|
|
|
# env:
|
|
|
|
|
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
# run: |
|
|
|
|
|
# echo "Wating for cache '${BLDCACHE}' ..."
|
|
|
|
|
# sleep $(( $RANDOM / 1024 ))
|
|
|
|
|
# PROBE="$(gh cache list --limit 300 --repo ${{ github.repository }} | grep -i ${BLDCACHE} || echo '')"
|
|
|
|
|
# while [[ -z ${PROBE} ]]; do
|
|
|
|
|
# echo "Wating for cache '${BLDCACHE}' ..."
|
|
|
|
|
# sleep 30
|
|
|
|
|
# PROBE="$(gh cache list --limit 300 --repo ${{ github.repository }} | grep -i ${BLDCACHE} || echo '')"
|
|
|
|
|
# done
|
|
|
|
|
# echo "Cache available '${BLDCACHE}'"
|
|
|
|
|
|
|
|
|
|
- name: Cache restore src
|
|
|
|
|
id: cache-src
|
|
|
|
|
|