From f0181f63108ac407368643e5b2921b3c7961a5bf Mon Sep 17 00:00:00 2001 From: rasswanth-s <43314053+rasswanth-s@users.noreply.github.com> Date: Wed, 29 Nov 2023 15:33:33 +0530 Subject: [PATCH 1/2] Added redundant bump version to docker images build --- .github/workflows/cd-syft.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/cd-syft.yml b/.github/workflows/cd-syft.yml index 9ce6a3d36fa..68893f05239 100644 --- a/.github/workflows/cd-syft.yml +++ b/.github/workflows/cd-syft.yml @@ -107,6 +107,14 @@ jobs: fi echo "grid_version=$(python packages/grid/VERSION)" >> $GITHUB_OUTPUT + # TODO: Optimize redundant bump protocol version checks + - name: Check and Bump Protocol Version + run: | + if [[ $(python packages/grid/VERSION) != *"beta"* ]]; then + export BUMP=True + fi + tox -e syft.protocol.check + - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@v3 From df9b8a0f0e6525ccd5474a69a5651d1384a9c001 Mon Sep 17 00:00:00 2001 From: rasswanth-s <43314053+rasswanth-s@users.noreply.github.com> Date: Wed, 29 Nov 2023 15:35:40 +0530 Subject: [PATCH 2/2] added step to install tox --- .github/workflows/cd-syft.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd-syft.yml b/.github/workflows/cd-syft.yml index 68893f05239..55b57b0b86b 100644 --- a/.github/workflows/cd-syft.yml +++ b/.github/workflows/cd-syft.yml @@ -79,7 +79,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install --upgrade bump2version + pip install --upgrade bump2version tox - name: Bump the Version id: bump-version