Skip to content

Commit 6dcc443

Browse files
authored
Merge pull request #309 from PHPCSStandards/feature/ghactions-xmllint-bypass-apt-get-update
GH Actions: work around intermittent apt-get errors
2 parents cd881d3 + fd2752e commit 6dcc443

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/basics.yml

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

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

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

0 commit comments

Comments
 (0)