Skip to content

Commit

Permalink
Updating sha (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
KartikP authored Oct 31, 2024
1 parent 9ca38c8 commit 889b617
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/map_new_plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ jobs:
run: |
required_checks=("Brain-Score Plugins Unit tests (AWS Jenkins, AWS Execution)" "Brain-Score Non-Plugin Unit tests (AWS Jenkins, AWS Execution)")
completed_checks=0
echo "Using github PR head sha: ${{ github.event.pull_request.head.sha }}"
echo "Option to use github sha: ${{ github.sha }}"
# Fetch the status of all checks for this commit
statuses=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/brain-score/vision/commits/${{ github.event.commit.sha }}/status" | jq -r '.statuses[] | {context: .context, state: .state}')
"https://api.github.com/repos/brain-score/vision/commits/${{ github.event.pull_request.head.sha }}/status" | jq -r '.statuses[] | {context: .context, state: .state}')
# Check if both required jobs are marked as 'success'
for check in "${required_checks[@]}"; do
Expand Down

0 comments on commit 889b617

Please sign in to comment.