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 | run: | | 150 | run: | |
| 151 | set -euo pipefail | 151 | set -euo pipefail |
| 152 | run_id="" | 152 | run_id="" |
| 153 | - for rid in $(gh run list --workflow main.yml --branch main --event push --limit 15 --json databaseId --jq '.[].databaseId'); do | 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 "$rid" --json jobs --jq '.jobs[] | select(.name=="Build and test") | .conclusion')" = "success" ]; then | 154 | + if [ "$(gh run view -R "$GITHUB_REPOSITORY" "$rid" --json jobs --jq '.jobs[] | select(.name=="Build and test") | .conclusion')" = "success" ]; then |
| 155 | run_id=$rid | 155 | run_id=$rid |
| 156 | break | 156 | break |
| 157 | fi | 157 | fi |