From 53a341b91b74013f6bde0f2f37f32ba6560e8cd4 Mon Sep 17 00:00:00 2001 From: Kartik Pradeepan Date: Thu, 31 Oct 2024 09:27:56 -0400 Subject: [PATCH] Updating sha --- .github/workflows/map_new_plugins.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/map_new_plugins.yml b/.github/workflows/map_new_plugins.yml index 84e616cc6..8260d872d 100644 --- a/.github/workflows/map_new_plugins.yml +++ b/.github/workflows/map_new_plugins.yml @@ -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