From 428c42583d3c0428896bf03957d14476b2a8fbaa Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Mon, 18 Dec 2023 15:58:34 +0100 Subject: [PATCH] ci: raise an error if integration folder name contains hyphens (#119) --- .../workflows/CI_check_integration_format.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/CI_check_integration_format.yml diff --git a/.github/workflows/CI_check_integration_format.yml b/.github/workflows/CI_check_integration_format.yml new file mode 100644 index 000000000..92e7310b4 --- /dev/null +++ b/.github/workflows/CI_check_integration_format.yml @@ -0,0 +1,16 @@ +name: Core / Check Integration Format +on: +- pull_request + +jobs: + check: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Ensure no hyphens + run: | + set +e + find -name "*-*" -type d -maxdepth 2 | grep integrations + test "$?" -eq 1 && exit 0 || echo "::error::Names of folders in ./integrations must not contain hyphens" && exit 1