Skip to content

Commit b091823

Browse files
authored
Update upgrade-toolchain.yml (#1250)
1 parent b39e5b7 commit b091823

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches: [main]
99
types: [opened, synchronize, reopened, ready_for_review]
1010

11+
concurrency:
12+
group: ${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
tests:
1317
strategy:

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [main]
88

9+
concurrency:
10+
group: ${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
build:
1115
name: Build and Deploy Website

.github/workflows/upgrade-toolchain.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
required: false
1818
type: number
1919

20+
concurrency:
21+
group: ${{ github.workflow }}
22+
2023
jobs:
2124
upgrade:
2225
runs-on: ubuntu-latest
@@ -59,11 +62,8 @@ jobs:
5962
path: tock
6063

6164
- name: Checkout rust
62-
uses: actions/checkout@v4
63-
with:
64-
repository: rust-lang/rust
65-
path: rust
66-
filter: tree:0
65+
run: |
66+
git clone --filter=tree:0 https://github.com/rust-lang/rust rust
6767
6868
- name: Install Z3
6969
uses: cda-tum/[email protected]
@@ -105,7 +105,8 @@ jobs:
105105
draft: true
106106
delete-branch: true
107107
title: "Toolchain upgrade to nightly-${{ env.last_toolchain }}"
108-
body: Update Rust toolchain to nightly-${{ env.last_toolchain }}
108+
body: |
109+
This is an automated PR to update the Rust toolchain to nightly-${{ env.last_toolchain }}
109110
110111
- name: Get git log for failure
111112
if: steps.update-loop.outcome == 'failure'
@@ -132,8 +133,10 @@ jobs:
132133
delete-branch: true
133134
title: "Toolchain upgrade to nightly-${{ env.last_toolchain }}"
134135
body: |
135-
Update Rust toolchain to nightly-${{ env.last_toolchain }}
136-
Update failed when going from nightly-${{ env.prev_toolchain}} to nightly-${{ env.last_toolchain }}
136+
This is an automated PR to update the Rust toolchain to nightly-${{ env.last_toolchain }}
137+
138+
Update failed when going from nightly-${{ env.prev_toolchain}} to nightly-${{ env.last_toolchain }}.
139+
The failed automated run [can be found here.](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
137140
138141
Please review the changes from https://github.com/rust-lang/rust/commit/${{ env.prev_toolchain_hash }} up to https://github.com/rust-lang/rust/commit/${{ env.last_toolchain_hash }}
139142
<details>

0 commit comments

Comments
 (0)