Gh run list/view'a -R $GITHUB_REPOSITORY ekle (checkout'siz is)
Browse files at this commitd92dcc0b58dc3c35a6fe23f2f79913bc9096c7beParent: 68633fd- ci
- gh run list/view'a -R $GITHUB_REPOSITORY ekle (checkout'siz is)
1 changed file +2 -2
.github/workflows/main.ymlmodified+2 -2
| @@ -150,8 +150,8 @@ jobs: | ||
| 150 | 150 | run: | |
| 151 | 151 | set -euo pipefail |
| 152 | 152 | run_id="" |
| 153 | - for rid in $(gh run list --workflow main.yml --branch main --event push --limit 15 --json databaseId --jq '.[].databaseId'); do | |
| 154 | - if [ "$(gh run view "$rid" --json jobs --jq '.jobs[] | select(.name=="Build and test") | .conclusion')" = "success" ]; then | |
| 153 | + for rid in $(gh run list -R "$GITHUB_REPOSITORY" --workflow main.yml --branch main --event push --limit 15 --json databaseId --jq '.[].databaseId'); do | |
| 154 | + if [ "$(gh run view -R "$GITHUB_REPOSITORY" "$rid" --json jobs --jq '.jobs[] | select(.name=="Build and test") | .conclusion')" = "success" ]; then | |
| 155 | 155 | run_id=$rid |
| 156 | 156 | break |
| 157 | 157 | fi |