Skip to content

Commit

Permalink
Merge pull request #379 from Yoast/feature/ghactions-xmllint-bypass-a…
Browse files Browse the repository at this point in the history
…pt-get-update

GH Actions: work around intermittent apt-get errors
  • Loading branch information
jrfnl authored Apr 24, 2024
2 parents 159ccc1 + 8879ca3 commit ea0a46b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/basics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,15 @@ jobs:
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")

# Updating the lists can fail intermittently, typically after Microsoft has released a new package.
# This should not be blocking for this job, so ignore any errors from this step.
# Ref: https://github.com/dotnet/core/issues/4167
- name: Update the available packages list
continue-on-error: true
run: sudo apt-get update

- name: Install xmllint
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y libxml2-utils
run: sudo apt-get install --no-install-recommends -y libxml2-utils

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

0 comments on commit ea0a46b

Please sign in to comment.