Skip to content

Commit 9a0c254

Browse files
authored
Merge pull request #463 from PHPCSStandards/feature/ghactions-xmllint-bypass-apt-get-update
GH Actions: work around intermittent apt-get errors
2 parents ae2993c + 15d9d9e commit 9a0c254

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/validate.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,15 @@ jobs:
2828
- name: Checkout code
2929
uses: actions/checkout@v4
3030

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

3641
- name: Retrieve XML Schema
3742
run: curl -O https://www.w3.org/2012/04/XMLSchema.xsd

0 commit comments

Comments
 (0)