Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Update actions/checkout action to v4 #215

Update actions/checkout action to v4

Update actions/checkout action to v4 #215

Workflow file for this run

---
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