From bdd09b85a72730f67c216acad98b7c5f771d526a Mon Sep 17 00:00:00 2001 From: bburns632 Date: Fri, 19 Apr 2024 14:44:21 -0500 Subject: [PATCH] revised logic to balance act and gh actions --- .github/workflows/ci.yml | 5 ++++- .github/workflows/release.yml | 5 ++++- .github/workflows/smoke-tests.yaml | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ab80a6..5c8e304 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..2d63793 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..60a8e8a 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 }}