Skip to content

Commit 747edc2

Browse files
authored
Merge pull request #6 from PHPCompatibility/feature/ghactions-xmllint-bypass-apt-get-update
GH Actions: work around intermittent apt-get errors
2 parents 175c7f4 + 0cbf816 commit 747edc2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Diff for: .github/workflows/ci.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,15 @@ jobs:
3434
- name: Install dependencies
3535
run: composer install --no-dev --no-interaction --no-progress
3636

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

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

0 commit comments

Comments
 (0)