From c37087fc4c1afb046c82b261950fbd2ce42439e6 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Wed, 5 Oct 2022 17:44:49 -0700 Subject: [PATCH] sudo make me a sandwhich --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd1083bb..be63d260 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -323,10 +323,10 @@ jobs: - name: Move cache from home to root run: | - mkdir -p /root/.cache + sudo mkdir -p /root/.cache if [[ -d "~/snapcraft-cache" ]]; then - mv ~/snapcraft-cache /root/.cache/snapcraft - chown -R root:root /root/.cache/snapcraft + sudo mv ~/snapcraft-cache /root/.cache/snapcraft + sudo chown -R root:root /root/.cache/snapcraft echo "moved cache from home to root" fi @@ -335,8 +335,8 @@ jobs: - name: Move cache root to home run: | - mv /root/.cache/snapcraft ~/snapcraft-cache - chown -R $USER:$USER ~/snapcraft-cache + sudo mv /root/.cache/snapcraft ~/snapcraft-cache + sudo chown -R $USER:$USER ~/snapcraft-cache - uses: actions/upload-artifact@v3 with: