We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 931095e commit 48a3d84Copy full SHA for 48a3d84
1 file changed
.github/workflows/testing1087.yml
@@ -13,13 +13,15 @@ jobs:
13
14
steps:
15
- uses: actions/checkout@v6
16
- - name: Clear pre-mounted tool cache
+ - name: Ensure Sudo is Installed
17
run: |
18
- echo "Before:"
19
- ls /__t/Python/ || echo "no Python dir"
20
- rm -rf /__t/Python
21
- echo "After:"
22
- ls /__t/Python/ || echo "cleared"
+ if ! command -v sudo &> /dev/null; then
+ echo "sudo could not be found. Installing..."
+ apt-get update && apt-get install -y sudo
+ fi
+ - name: Fix pip cache permissions
23
+ run: sudo chown -R $(whoami) /github/home
24
+
25
26
- name: Setup Python 3.8
27
uses: actions/setup-python@v5
0 commit comments