Gh run list/view'a -R $GITHUB_REPOSITORY ekle (checkout'siz is)
Browse files at this commit0cf52a035b0159d7b8d3b2ef3f90722ec90b5285Parent: 3c4490c- ci
- gh run list/view'a -R $GITHUB_REPOSITORY ekle (checkout'siz is)
1 changed file +2 -2
.github/workflows/main.ymlmodified+2 -2
| @@ -172,8 +172,8 @@ jobs: | ||
| 172 | 172 | run: | |
| 173 | 173 | set -euo pipefail |
| 174 | 174 | run_id="" |
| 175 | - for rid in $(gh run list --workflow main.yml --branch main --event push --limit 15 --json databaseId --jq '.[].databaseId'); do | |
| 176 | - if [ "$(gh run view "$rid" --json jobs --jq '.jobs[] | select(.name=="Build and test") | .conclusion')" = "success" ]; then | |
| 175 | + for rid in $(gh run list -R "$GITHUB_REPOSITORY" --workflow main.yml --branch main --event push --limit 15 --json databaseId --jq '.[].databaseId'); do | |
| 176 | + if [ "$(gh run view -R "$GITHUB_REPOSITORY" "$rid" --json jobs --jq '.jobs[] | select(.name=="Build and test") | .conclusion')" = "success" ]; then | |
| 177 | 177 | run_id=$rid |
| 178 | 178 | break |
| 179 | 179 | fi |