Skip to content

Commit 293afbe

Browse files
authored
Merge pull request #2444 from WordPress/feature/ghactions-xmllint-bypass-apt-get-update
GH Actions: work around intermittent apt-get errors
2 parents 370a486 + b4b27c9 commit 293afbe

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/basic-qa.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,15 @@ jobs:
5656
# Bust the cache at least once a month - output format: YYYY-MM.
5757
custom-cache-suffix: $(date -u "+%Y-%m")
5858

59+
# Updating the lists can fail intermittently, typically after Microsoft has released a new package.
60+
# This should not be blocking for this job, so ignore any errors from this step.
61+
# Ref: https://github.com/dotnet/core/issues/4167
62+
- name: Update the available packages list
63+
continue-on-error: true
64+
run: sudo apt-get update
65+
5966
- name: Install xmllint
60-
run: |
61-
sudo apt-get update
62-
sudo apt-get install --no-install-recommends -y libxml2-utils
67+
run: sudo apt-get install --no-install-recommends -y libxml2-utils
6368

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

0 commit comments

Comments
 (0)