From 596d6279388606f71133eb4bf77b4bc3ae22516b Mon Sep 17 00:00:00 2001 From: sarayourfriend <24264157+sarayourfriend@users.noreply.github.com> Date: Mon, 1 Aug 2022 15:21:18 -0400 Subject: [PATCH] Use sudo when removing preview folders (#841) --- .github/workflows/ci_cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index a2adc8934..f45a34e79 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -373,7 +373,7 @@ jobs: cp -r ./openverse-api /tmp/gh-pages # trash the existing preview folder and replace it with the newly generated one # if the preview hasn't been pushed yet this will still exit(0) - rm -rf /tmp/gh-pages/_preview/${{ github.event.pull_request.number }} + sudo rm -rf /tmp/gh-pages/_preview/${{ github.event.pull_request.number }} mv /tmp/preview /tmp/gh-pages/_preview/${{ github.event.pull_request.number }} cd openverse-api