Commit 1df3c24 1 parent 944b6ba commit 1df3c24 Copy full SHA for 1df3c24
File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 26
26
- name : " Determine prerequisites"
27
27
id : prereq
28
28
run : |
29
- DEBIAN_FRONTEND=noninteractive apt update && apt upgrade -y
30
- apt install -y sudo apt-utils
29
+ command -v sudo >/dev/null 2>&1 || ( apt update && apt install -y sudo)
30
+ DEBIAN_FRONTEND=noninteractive sudo apt update && sudo apt upgrade -y
31
31
echo "need_node=$(command -v node >/dev/null 2>&1 && echo 0 || echo 1)" >> $GITHUB_OUTPUT
32
32
33
33
# needed for github actions, and only if a bare ubuntu image is used
38
38
# https://github.com/nektos/act/issues/973
39
39
if : ${{ steps.prereq.outputs.need_node == '1' && env.ACT }}
40
40
run : |
41
- apt install -y curl
41
+ sudo apt install -y curl
42
42
curl -sS https://webi.sh/node | sh
43
43
echo ~/.local/opt/node/bin >> $GITHUB_PATH
44
44
Original file line number Diff line number Diff line change 31
31
- name : " Determine prerequisites"
32
32
id : prereq
33
33
run : |
34
- DEBIAN_FRONTEND=noninteractive apt update && apt upgrade -y
35
- apt install -y sudo apt-utils
34
+ command -v sudo >/dev/null 2>&1 || ( apt update && apt install -y sudo)
35
+ DEBIAN_FRONTEND=noninteractive sudo apt update && sudo apt upgrade -y
36
36
echo "need_node=$(command -v node >/dev/null 2>&1 && echo 0 || echo 1)" >> $GITHUB_OUTPUT
37
37
38
38
# needed for github actions, and only if a bare ubuntu image is used
43
43
# https://github.com/nektos/act/issues/973
44
44
if : ${{ steps.prereq.outputs.need_node == '1' && env.ACT }}
45
45
run : |
46
- apt install -y curl
46
+ sudo apt install -y curl
47
47
curl -sS https://webi.sh/node | sh
48
48
echo ~/.local/opt/node/bin >> $GITHUB_PATH
49
49
Original file line number Diff line number Diff line change 41
41
- name : " Determine prerequisites"
42
42
id : prereq
43
43
run : |
44
- DEBIAN_FRONTEND=noninteractive apt update && apt upgrade -y
45
- apt install -y sudo apt-utils
44
+ command -v sudo >/dev/null 2>&1 || ( apt update && apt install -y sudo)
45
+ DEBIAN_FRONTEND=noninteractive sudo apt update && sudo apt upgrade -y
46
46
echo "need_node=$(command -v node >/dev/null 2>&1 && echo 0 || echo 1)" >> $GITHUB_OUTPUT
47
47
48
48
# needed for github actions, and only if a bare ubuntu image is used
53
53
# https://github.com/nektos/act/issues/973
54
54
if : ${{ steps.prereq.outputs.need_node == '1' && env.ACT }}
55
55
run : |
56
- apt install -y curl
56
+ sudo apt install -y curl
57
57
curl -sS https://webi.sh/node | sh
58
58
echo ~/.local/opt/node/bin >> $GITHUB_PATH
59
59
You can’t perform that action at this time.
0 commit comments