From 1346142dd42975039298b061174c95965c1cf40a Mon Sep 17 00:00:00 2001 From: Grant Zukel Date: Mon, 6 May 2024 12:58:31 -0600 Subject: [PATCH] release v0 --- .github/workflows/publish-release.yml | 65 ++++++++++++++------------- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 5862af0c40..1547b5e90c 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -56,10 +56,11 @@ jobs: with: args: ./... - - name: Skip Checks Succeed for Needs. + - name: Mark Job Complete Skipped if: ${{ github.event.inputs.skip_checks == 'true' }} + shell: bash run: | - echo "Check Skipped, Mark Green for Pipeline Execution" + echo "continue" gosec-cosmos: needs: @@ -84,10 +85,11 @@ jobs: if: ${{ github.event.inputs.skip_checks != 'true' }} run: make lint-cosmos-gosec - - name: Skip Checks Succeed for Needs. + - name: Mark Job Complete Skipped if: ${{ github.event.inputs.skip_checks == 'true' }} + shell: bash run: | - echo "Check Skipped, Mark Green for Pipeline Execution" + echo "continue" lint: needs: @@ -117,10 +119,11 @@ jobs: skip-cache: true args: --out-format=json - - name: Skip Checks Succeed for Needs. + - name: Mark Job Complete Skipped if: ${{ github.event.inputs.skip_checks == 'true' }} + shell: bash run: | - echo "Check Skipped, Mark Green for Pipeline Execution" + echo "continue" check-changelog: needs: @@ -142,7 +145,6 @@ jobs: https://api.github.com/repos/${{ github.repository }}/git/ref/heads/develop | jq -r '.object.sha') echo "DEVELOP_SHA=${SHA}" >> ${GITHUB_ENV} echo "CURRENT_BRANCH_SHA=${{ github.sha }}" >> ${GITHUB_ENV} - - name: Check for CHANGELOG.md changes if: ${{ github.event.inputs.skip_checks != 'true' }} @@ -159,10 +161,11 @@ jobs: echo "CHANGELOG.md has been updated." fi - - name: Skip Checks Succeed for Needs. + - name: Mark Job Complete Skipped if: ${{ github.event.inputs.skip_checks == 'true' }} + shell: bash run: | - echo "Check Skipped, Mark Green for Pipeline Execution" + echo "continue" check-upgrade-handler-updated: needs: @@ -190,10 +193,11 @@ jobs: fi echo "The major version found in 'releaseVersion' in app/setup_handlers.go matches this tagged release - Moving Forward!" - - name: Skip Checks Succeed for Needs. + - name: Mark Job Complete Skipped if: ${{ github.event.inputs.skip_checks == 'true' }} + shell: bash run: | - echo "Check Skipped, Mark Green for Pipeline Execution" + echo "continue" build-test: needs: @@ -266,10 +270,11 @@ jobs: shell: bash run: rm -rf * - - name: Skip Checks Succeed for Needs. + - name: Mark Job Complete Skipped if: ${{ github.event.inputs.skip_checks == 'true' }} + shell: bash run: | - echo "Check Skipped, Mark Green for Pipeline Execution" + echo "continue" smoke-test: needs: @@ -343,10 +348,11 @@ jobs: shell: bash run: sudo rm -rf * - - name: Skip Checks Succeed for Needs. + - name: Mark Job Complete Skipped if: ${{ github.event.inputs.skip_checks == 'true' }} + shell: bash run: | - echo "Check Skipped, Mark Green for Pipeline Execution" + echo "continue" e2e-admin-tests: needs: @@ -364,6 +370,12 @@ jobs: run: | make start-e2e-admin-test + - name: Mark Job Complete Skipped + if: ${{ github.event.inputs.skip_checks == 'true' }} + shell: bash + run: | + echo "continue" + e2e-upgrade-test: needs: - check_branch @@ -380,7 +392,14 @@ jobs: run: | make start-upgrade-test - pre_release_step_check: + - name: Mark Job Complete Skipped + if: ${{ github.event.inputs.skip_checks == 'true' }} + shell: bash + run: | + echo "continue" + + publish-release: + if: ${{ github.event.inputs.skip_release == 'false' }} needs: - gosec - gosec-cosmos @@ -392,20 +411,6 @@ jobs: - e2e-admin-tests - e2e-upgrade-test - check_branch - runs-on: buildjet-4vcpu-ubuntu-2204 - timeout-minutes: 120 - steps: - - name: Execute upgrade-test - if: ${{ github.event.inputs.skip_checks != 'true' }} - shell: bash - run: | - echo "${{ github.ref }}" - - publish-release: - if: ${{ github.event.inputs.skip_release == 'false' }} - needs: - - pre_release_step_check - - check_branch runs-on: buildjet-4vcpu-ubuntu-2004 timeout-minutes: 60 environment: release