This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
Update actions/checkout action to v4 #215
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Check files | |
on: | |
push: | |
branches: [main] | |
paths: | |
- .github/workflows/check-files.yaml | |
- pkgs/**/pkg.yaml | |
- pkgs/**/registry.yaml | |
pull_request: | |
branches: [main] | |
paths: | |
- .github/workflows/check-files.yaml | |
- pkgs/**/pkg.yaml | |
- pkgs/**/registry.yaml | |
jobs: | |
check-files: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
if ! diff <(find pkgs -name registry.yaml -print0 | xargs -0 dirname | sort -u) <(find pkgs -name pkg.yaml -print0 | xargs -0 dirname | sort -u); then | |
echo "" >&2 | |
echo "::error::Either pkg.yaml or registry.yaml isn't found. Don't forget to add pkg.yaml for test" >&2 | |
exit 1 | |
fi |