From 8780db9d8011f6ecb3b9840b2e9f65979799adda Mon Sep 17 00:00:00 2001 From: jsirianni Date: Wed, 16 Aug 2023 09:09:26 -0400 Subject: [PATCH 1/4] check for doc changes when running ci --- .github/workflows/ci.yml | 19 ++++++++++++++++++ .github/workflows/scripts/assert-no-diff.sh | 22 +++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100755 .github/workflows/scripts/assert-no-diff.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 129ee62e..8ee88ad5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,25 @@ jobs: CHART_LOCATION: ./charts/bindplane CHART_VALUES: ./charts/bindplane/values.yaml + docs: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Install Helm Docs + run: | + curl -L -o helm-docs.deb https://github.com/norwoodj/helm-docs/releases/download/v1.11.0/helm-docs_1.11.0_Linux_arm64.deb + sudo apt-get install -f ./helm-docs.deb + + - name: Update Docs + run: helm-docs + + - name: Assert No Diff + run: bash .github/workflows/scripts/assert-no-diff.sh + integration: runs-on: ubuntu-20.04 strategy: diff --git a/.github/workflows/scripts/assert-no-diff.sh b/.github/workflows/scripts/assert-no-diff.sh new file mode 100755 index 00000000..7f26417d --- /dev/null +++ b/.github/workflows/scripts/assert-no-diff.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +# Copyright observIQ, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e + +if ! git diff --exit-code --quiet; then + echo "ERROR: Uncommitted changes detected. Please commit or stash your changes before running this script." + echo "changes: $(git diff --name-only)" + exit 1 +fi From 1c49963b07120eb6570ef42711f91d8423003750 Mon Sep 17 00:00:00 2001 From: jsirianni Date: Wed, 16 Aug 2023 09:55:52 -0400 Subject: [PATCH 2/4] fix package arch and add git status --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ee88ad5..dccfb246 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,14 +27,16 @@ jobs: - name: Install Helm Docs run: | - curl -L -o helm-docs.deb https://github.com/norwoodj/helm-docs/releases/download/v1.11.0/helm-docs_1.11.0_Linux_arm64.deb + curl -L -o helm-docs.deb https://github.com/norwoodj/helm-docs/releases/download/v1.11.0/helm-docs_1.11.0_Linux_amd64.deb sudo apt-get install -f ./helm-docs.deb - name: Update Docs run: helm-docs + - run: git status + - name: Assert No Diff - run: bash .github/workflows/scripts/assert-no-diff.sh + run: bash .github/workflows/scripts/assert-no-diff.sh integration: runs-on: ubuntu-20.04 From 1a1c6df0f6fb12f398fafffd1f021a6b006e653e Mon Sep 17 00:00:00 2001 From: bindplane-op-action Date: Fri, 1 Mar 2024 09:23:41 -0500 Subject: [PATCH 3/4] ci From 9ec319b81222f1a8fc6903a992b01f7d93d88548 Mon Sep 17 00:00:00 2001 From: Joe Sirianni Date: Fri, 1 Mar 2024 09:27:36 -0500 Subject: [PATCH 4/4] ci