4141        run : bash ci/setup-toolchain.sh 
4242        if : github.event_name == 'schedule' 
4343      - name : Run tests 
44-         run : sh ci/run.sh ${{ matrix.os }}  
44+         run : sh -c "exit 1"  
4545
4646  create_issue :
4747    runs-on : ubuntu-latest 
@@ -53,21 +53,25 @@ jobs:
5353    steps :
5454      - name : Create an issue 
5555        shell : bash 
56+         env :
57+           GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 
5658        run : | 
57-           readarray -t exists < <(gh issue list --state open --label nightly-CI-failed --json number --jq '.[].number') 
58-           if [ -n "${exists[@]}" ]; then 
59-             echo "Not opening another issue, already have ${#exists[@]} issue(s), latest at https://github.com/rust-lang/rust-semverver/issues/${exists[0]}." 
59+           set -x 
60+           readarray -t exists < <(gh issue list --state open --label nightly-CI-failed --json number --jq '.[].number' --repo "$GITHUB_REPOSITORY") 
61+           if [[ -n "${exists[@]}" ]]; then 
62+             echo "Not opening another issue, already have ${#exists[@]} issue(s), latest at ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/issues/${exists[0]}." 
6063          else 
6164            cat << EOF | gh issue create \ 
6265              --label nightly-CI-failed \ 
6366              --title "Nightly CI run failed" \ 
67+               --repo "$GITHUB_REPOSITORY" \ 
6468              --body-file - 
6569            The nightly CI run on $(date +%F) seems to have failed. 
6670
67-             - Check the logs at https://github.com/rust-lang/rust-semverver /actions/runs/${{ github.run_id }} 
68-             - Update to the latest ` rustc-nightly`  if necessary 
71+             - Check the logs at ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} /actions/runs/${{ github.run_id }} 
72+             - Update to the latest ' rustc-nightly'  if necessary 
6973            - Investigate test run failures if any 
70-              EOF 
74+           EOF 
7175          fi 
7276
7377   #  https://forge.rust-lang.org/infra/docs/bors.html#adding-a-new-repository-to-bors
0 commit comments