Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bdd09b8

Browse files
committedApr 19, 2024·
revised logic to balance act and gh actions
1 parent 4a6a01c commit bdd09b8

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed
 

‎.github/workflows/ci.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ jobs:
2626
uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 1
29+
- name: If local, apt update
30+
if: ${{ (env.ACT || false) && (matrix.os == 'ubuntu-latest')}}
31+
run: sudo apt update
2932
- name: Install Tidy Ubuntu
3033
if: matrix.os == 'ubuntu-latest'
31-
run: apt update && sudo apt install -y tidy
34+
run: sudo apt install -y tidy
3235
- name: set up R
3336
uses: r-lib/actions/setup-r@v2
3437
with:

‎.github/workflows/release.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ jobs:
4141
uses: actions/checkout@v4
4242
with:
4343
fetch-depth: 1
44+
- name: If local, apt update
45+
if: ${{ (env.ACT || false) && (matrix.os == 'ubuntu-latest')}}
46+
run: sudo apt update
4447
- name: Install Tidy Ubuntu
4548
if: matrix.os == 'ubuntu-latest'
46-
run: apt update && sudo apt install -y tidy
49+
run: sudo apt install -y tidy
4750
- name: set up R
4851
uses: r-lib/actions/setup-r@v2
4952
with:

‎.github/workflows/smoke-tests.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ jobs:
8484
uses: r-lib/actions/setup-r@v2
8585
with:
8686
r-version: 'release'
87+
- name: If local, apt update
88+
if: ${{ (env.ACT || false) }}
89+
run: sudo apt update
8790
- name: Install Tidy
8891
run: apt update && sudo apt install -y tidy
8992
- name: Install Deps For Pkgnet & ${{ matrix.test_pkg }}

0 commit comments

Comments
 (0)
Please sign in to comment.