Skip to content

Commit 109b6d8

Browse files
authored
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. Closes jquerygh-634
1 parent 8ed8b6a commit 109b6d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/node.js.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2020

21+
- name: Update apt-get cache
22+
run: sudo apt-get update
23+
2124
- name: Install xsltproc
22-
run: |
23-
sudo apt-get install xsltproc
25+
run: sudo apt-get install -y xsltproc
2426

2527
# When Ubuntu Plucky is available in GitHub Actions, switch to it, remove
2628
# the following section and just install the `imagemagick` package normally

0 commit comments

Comments
 (0)