Skip to content

Commit

Permalink
chore: re-calculate scores action
Browse files Browse the repository at this point in the history
Albermonte committed Nov 29, 2024
1 parent 8370cf7 commit b269c44
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -84,3 +84,21 @@ jobs:
fi
echo $RESPONSE
sync-validator-scores:
name: Recalculates the validators score
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Sync validator scores
run: |
echo "Sync validators scores for ${{ inputs.network }}..."
RESPONSE=$(curl -s -X POST "${{ inputs.api_url }}/api/v1/scores?force=true")
ISSUES=$(echo $RESPONSE | jq -r '.issues')
if [ "$ISSUES" != "[]" ]; then
echo "Issues found: $ISSUES"
fi
echo $RESPONSE

0 comments on commit b269c44

Please sign in to comment.