1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-21 22:47:43 +00:00
Files
matomo/.github/workflows/update-font.yml
Stefan Giehl 5985df9a65 Update GitHub actions to use Ubuntu 24.04 (#23097)
* Use explicit "ubuntu-24.04" runner for all workflows

* Updates expected system test files with changed images

* updates expected UI test files with changes due to slightly different font rendering

* Updates UI test files with changes caused by now correctly rendered characters

* Updates expected UI files  changed due to a different error message in curl

* submodule updates

* remove duplicate screenshot file

---------

Co-authored-by: Marc Neudert <marc@innocraft.com>
2025-03-07 11:30:32 +01:00

40 خطوط
1.4 KiB
YAML

name: Font update check
# **What it does**: Checks that the font cachebuster parameter has been updated if the font file has changed
# **Why we have it**: To make sure that browser font caching is invalidated and the updated font is used
# **Who does it impact**: Any PR which changes the font file
on:
pull_request:
types: [synchronize, opened]
paths:
- 'plugins/Morpheus/fonts/matomo.*'
permissions:
actions: read
checks: read
contents: read
deployments: none
issues: read
packages: none
pull-requests: read
repository-projects: none
security-events: none
statuses: read
jobs:
check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Compare stylesheet to base branch
run: |
if [[ $(wget -O - -o /dev/null https://raw.githubusercontent.com/matomo-org/matomo/$GITHUB_BASE_REF/plugins/Morpheus/stylesheets/base/icons.css | grep -m1 -- "format('woff2')") == $(grep -m1 -- "format('woff2')" plugins/Morpheus/stylesheets/base/icons.css) ]]
then
line=$(grep -n "format('woff2')" plugins/Morpheus/stylesheets/base/icons.css | cut -f1 -d:)
echo "::error file=plugins/Morpheus/stylesheets/base/icons.css,line=$line::Font cachebuster parameter not updated. See https://developer.matomo.org/guides/matomo-font"
exit 1
else
exit 0
fi