diff --git a/.github/workflows/backend-linting.yaml b/.github/workflows/backend-linting.yaml index 38901c22..f46741db 100644 --- a/.github/workflows/backend-linting.yaml +++ b/.github/workflows/backend-linting.yaml @@ -11,6 +11,8 @@ jobs: test: runs-on: self-hosted steps: + - name: Add permission to remove contents of previous action script + run: echo ${{ secrets.SUDO }} | sudo -S chown -R $USER:$USER /home/selab2/actions-runner/_work/UGent-7/ - uses: actions/checkout@v4 - name: Set up Python 3.11 uses: actions/setup-python@v4 diff --git a/.github/workflows/frontend-linting.yaml b/.github/workflows/frontend-linting.yaml index d4bdc6d8..1683277c 100644 --- a/.github/workflows/frontend-linting.yaml +++ b/.github/workflows/frontend-linting.yaml @@ -11,6 +11,8 @@ jobs: linting-checks: runs-on: ubuntu-latest steps: + - name: Add permission to remove contents of previous action script + run: echo ${{ secrets.SUDO }} | sudo -S chown -R $USER:$USER /home/selab2/actions-runner/_work/UGent-7/ - uses: actions/checkout@v4 - name: Install dependencies run: cd frontend; npm install diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 7bc52a4a..d787cc08 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -11,6 +11,8 @@ jobs: test: runs-on: self-hosted steps: + - name: Add permission to remove contents of previous action script + run: echo ${{ secrets.SUDO }} | sudo -S chown -R $USER:$USER /home/selab2/actions-runner/_work/UGent-7/ - uses: actions/checkout@v4 - name: Run tests run: echo ${{ secrets.SUDO }} | sudo -S ./test.sh -c