Skip to content

Commit 630f83e

Browse files
author
Tim Middleton
committed
Fix runner restart
1 parent 5a36432 commit 630f83e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ jobs:
3333
with:
3434
fetch-depth: 0
3535

36+
- name: Work Around Restart Bug
37+
shell: bash
38+
run: |
39+
export NEEDRESTART_MODE=l
40+
echo "See https://github.com/actions/runner-images/issues/9959#issuecomment-2149915104"
41+
sudo apt-get autopurge -y needrestart
42+
3643
- name: Set up JDK
3744
uses: actions/setup-java@v4
3845
with:
@@ -59,12 +66,6 @@ jobs:
5966
with:
6067
go-version: '${{ matrix.go-version }}'
6168

62-
- name: Work Around Restart Bug
63-
shell: bash
64-
run: |
65-
echo "See https://github.com/actions/runner-images/issues/9959"
66-
sudo apt-get autopurge -y needrestart
67-
6869
- name: Get Docker Images
6970
shell: bash
7071
run: |

0 commit comments

Comments
 (0)