Skip to content

Commit

Permalink
Always refresh apt metadata
Browse files Browse the repository at this point in the history
Before running `apt-get install` always refresh the metadata.
  • Loading branch information
traylenator committed Jan 24, 2024
1 parent b66ada4 commit ea3ac5c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/beaker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ jobs:
- uses: actions/checkout@v4
- name: install additional packages
if: ${{ inputs.additional_packages != '' }}
run: sudo apt-get install -y ${{ inputs.additional_packages }}
run: |
sudo apt-get update
sudo apt-get install -y ${{ inputs.additional_packages }}
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
Expand Down Expand Up @@ -121,7 +123,9 @@ jobs:
- uses: actions/checkout@v4
- name: install additional packages
if: ${{ inputs.additional_packages != '' }}
run: sudo apt-get install -y ${{ inputs.additional_packages }}
run: |
sudo apt-get update
sudo apt-get install -y ${{ inputs.additional_packages }}
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
Expand Down Expand Up @@ -150,10 +154,13 @@ jobs:
- uses: actions/checkout@v4
- name: install additional packages
if: ${{ inputs.additional_packages != '' }}
run: sudo apt-get install -y ${{ inputs.additional_packages }}
run: |
sudo apt-get update
sudo apt-get install -y ${{ inputs.additional_packages }}
- name: Setup libvirt for Vagrant
if: ${{ inputs.beaker_hypervisor == 'vagrant_libvirt' }}
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends vagrant vagrant-libvirt libvirt-clients libvirt-daemon-system libvirt-daemon qemu qemu-system-x86 qemu-utils
sudo chmod 666 /var/run/libvirt/libvirt-sock
- name: Setup ruby
Expand Down

0 comments on commit ea3ac5c

Please sign in to comment.