From 326da2f9ca56ac9e11ef74f9da10d60d8343b1c8 Mon Sep 17 00:00:00 2001 From: Bastiaan Date: Wed, 10 Jul 2024 12:26:46 +0200 Subject: [PATCH] Add workflow to test the makefile for missing targets This would trigger if an external chart is added to the main branch without a simple way to update it --- .../check-missing-update-targets.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/check-missing-update-targets.yml diff --git a/.github/workflows/check-missing-update-targets.yml b/.github/workflows/check-missing-update-targets.yml new file mode 100644 index 00000000..86e11646 --- /dev/null +++ b/.github/workflows/check-missing-update-targets.yml @@ -0,0 +1,26 @@ +name: Check Missing Update Targets + +on: + pull_request: + branches: + - main + +jobs: + check-missing-update-targets: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Make + run: sudo apt-get install make + + - name: Run make list-missing-update-targets + id: check + run: | + OUTPUT=$(make list-missing-update-targets) + if [ -n "$OUTPUT" ]; then + echo "Missing update targets detected:" + echo "$OUTPUT" + exit 1 + fi \ No newline at end of file