diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ab80a6..4cabcc1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,9 +26,12 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 1 + - name: If local, apt update + if: ${{ (env.ACT || False) && (matrix.os == 'ubuntu-latest')}} + run: sudo apt update - name: Install Tidy Ubuntu if: matrix.os == 'ubuntu-latest' - run: apt update && sudo apt install -y tidy + run: sudo apt install -y tidy - name: set up R uses: r-lib/actions/setup-r@v2 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d302323..17dc03a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,9 +41,12 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 1 + - name: If local, apt update + if: ${{ (env.ACT || False) && (matrix.os == 'ubuntu-latest')}} + run: sudo apt update - name: Install Tidy Ubuntu if: matrix.os == 'ubuntu-latest' - run: apt update && sudo apt install -y tidy + run: sudo apt install -y tidy - name: set up R uses: r-lib/actions/setup-r@v2 with: diff --git a/.github/workflows/smoke-tests.yaml b/.github/workflows/smoke-tests.yaml index 6df1ba3..bf97a7f 100644 --- a/.github/workflows/smoke-tests.yaml +++ b/.github/workflows/smoke-tests.yaml @@ -84,6 +84,9 @@ jobs: uses: r-lib/actions/setup-r@v2 with: r-version: 'release' + - name: If local, apt update + if: ${{ (env.ACT || False) }} + run: sudo apt update - name: Install Tidy run: apt update && sudo apt install -y tidy - name: Install Deps For Pkgnet & ${{ matrix.test_pkg }}