From 7d4a8c125e991067e2971f5a947ff8a2096d3d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski-Owczarek?= Date: Mon, 24 Mar 2025 00:56:06 +0100 Subject: [PATCH] Build: Run `apt-get update` before installing packages An out of date state of some runners makes `apt-get install` fail unless an `apt-get update` is scheduled first. --- .github/workflows/node.js.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index cedc7b1..e9e2e86 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -18,9 +18,11 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - name: Update apt-get cache + run: sudo apt-get update + - name: Install xsltproc - run: | - sudo apt-get install xsltproc + run: sudo apt-get install -y xsltproc # When Ubuntu Plucky is available in GitHub Actions, switch to it, remove # the following section and just install the `imagemagick` package normally