mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 04:08:54 +03:00
7641df2586
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...8ade135a41bc03ea155e62e844d188df1ea18608) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
21 lines
756 B
YAML
21 lines
756 B
YAML
name: QML Label component check
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
jobs:
|
|
build:
|
|
name: QML Label component check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Run label component count
|
|
run: |
|
|
MATCHESRESULT=$(find . -iname "*.qml" | xargs grep -r -e "^\s*Label\s*[{]" | wc -l | sed "s/ //g")
|
|
echo "MATCHES=${MATCHESRESULT}" >> $GITHUB_ENV
|
|
echo "EXPECTED_MATCHES=1" >> $GITHUB_ENV
|
|
- name: Check label component use count
|
|
if: env.MATCHES != env.EXPECTED_MATCHES
|
|
uses: actions/github-script@v6
|
|
with:
|
|
script: |
|
|
core.setFailed('Using QML Labels! Make sure to use EnforcedPlainTextLabel instead!')
|