Skip to content

Commit 463dc53

Browse files
authored
Merge pull request #818 from Automattic/feature/ghactions-xmllint-bypass-apt-get-update
GH Actions: work around intermittent apt-get errors
2 parents 7d3768c + f60ed12 commit 463dc53

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Diff for: .github/workflows/basics.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,15 @@ jobs:
3333
coverage: none
3434
tools: cs2pr
3535

36+
# Updating the lists can fail intermittently, typically after Microsoft has released a new package.
37+
# This should not be blocking for this job, so ignore any errors from this step.
38+
# Ref: https://github.com/dotnet/core/issues/4167
39+
- name: Update the available packages list
40+
continue-on-error: true
41+
run: sudo apt-get update
42+
3643
- name: Install xmllint
37-
run: |
38-
sudo apt-get update
39-
sudo apt-get install --no-install-recommends -y libxml2-utils
44+
run: sudo apt-get install --no-install-recommends -y libxml2-utils
4045

4146
# Show XML violations inline in the file diff.
4247
# @link https://github.com/marketplace/actions/xmllint-problem-matcher

0 commit comments

Comments
 (0)