diff --git a/.github/workflows/commit_checks.yml b/.github/workflows/commit_checks.yml index 8213267..9942ba2 100644 --- a/.github/workflows/commit_checks.yml +++ b/.github/workflows/commit_checks.yml @@ -51,13 +51,14 @@ jobs: - name: Find artifact run run: | sudo apt-get install jq - export RUN_ID=$( \ - curl -L \ - -H "Accept: application/vnd.github+json" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - "https://api.github.com/repos/AVSLab/basilisk/actions/runs?status=completed&per_page=100" \ - | jq -r '.workflow_runs[] | select(.name == "Pull Request Closed") | .id' | head -n 1 \ - ) + export RUN_ID=$( + curl -L \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + "https://api.github.com/repos/AVSLab/basilisk/actions/runs?status=completed&per_page=100" | + jq -r '.workflow_runs[] | select(.name == "Pull Request Closed") | .id' | + head -n 1 + ) echo "RUN_ID=$RUN_ID" >> $GITHUB_ENV - name: Pull artifacts uses: actions/download-artifact@v4