From 047779b2bbde6275ae2dc6cb70d19a6e2ba06d7b Mon Sep 17 00:00:00 2001 From: ganthepro Date: Wed, 27 Nov 2024 17:27:58 +0700 Subject: [PATCH] feat: add step to switch to root user in GitHub Actions workflow --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 303f127..ac48a07 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,6 +13,9 @@ jobs: build-and-deploy: runs-on: self-hosted steps: + - name: switch to root + run: sudo -s + - name: Copy Repository uses: actions/checkout@v4