Skip to content

Commit ef1f4fb

Browse files
authored
Merge pull request #8 from UoMResearchIT/cache
Cache whether 'apt-get update' is done
2 parents be6bd45 + 687a265 commit ef1f4fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apt-get-install/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ runs:
2222
using: composite
2323
steps:
2424
- name: update
25-
if: runner.os == 'Linux'
25+
if: runner.os == 'Linux' && env.uomRIT_aptget_update != 'done'
2626
shell: bash
2727
env:
2828
CFGFILE: ${{ github.action_path }}/apt.conf
2929
run: |
3030
echo ::group::Update base system
3131
sudo apt-get -c "$CFGFILE" update
32+
echo "uomRIT_aptget_update=done" >> $GITHUB_ENV
3233
echo ::endgroup::
3334
- name: install packages
3435
if: runner.os == 'Linux'

0 commit comments

Comments
 (0)