diff --git a/.github/workflows/CICD.yaml b/.github/workflows/CICD.yaml index 17169eb..db34ea0 100644 --- a/.github/workflows/CICD.yaml +++ b/.github/workflows/CICD.yaml @@ -47,7 +47,7 @@ jobs: https://github.com/ice-blockchain/${{ github.event.repository.name }} verify-latest-versions-used: name: Verify Latest Versions - if: ${{ false }} + if: ${{ (github.event_name == 'pull_request' && github.event.pull_request.draft == false) || github.event_name == 'push' }} runs-on: ubuntu-latest steps: - name: Checkout @@ -79,7 +79,7 @@ jobs: https://github.com/ice-blockchain/${{ github.event.repository.name }} verify-auto-generated: name: Verify Auto Generated - if: ${{ false }} + if: ${{ (github.event_name == 'pull_request' && github.event.pull_request.draft == false) || github.event_name == 'push' }} runs-on: ubuntu-latest steps: - name: Checkout @@ -111,7 +111,7 @@ jobs: https://github.com/ice-blockchain/${{ github.event.repository.name }} lint: name: Lint - if: ${{ false }} + if: ${{ (github.event_name == 'pull_request' && github.event.pull_request.draft == false) || github.event_name == 'push' }} runs-on: ubuntu-latest steps: - name: Checkout @@ -189,7 +189,7 @@ jobs: - email - notifications/push - auth - if: ${{ false }} + if: ${{ (github.event_name == 'pull_request' && github.event.pull_request.draft == false) || github.event_name == 'push' }} runs-on: ubuntu-latest # runs-on: self-hosted-ubuntu-latest-x64 steps: @@ -251,7 +251,7 @@ jobs: - email - notifications/push - auth - if: ${{ false }} + if: ${{ (github.event_name == 'pull_request' && github.event.pull_request.draft == false) || github.event_name == 'push' }} runs-on: ubuntu-latest # runs-on: self-hosted-ubuntu-latest-x64 steps: @@ -312,7 +312,7 @@ jobs: then exit 0 else - exit 0 + exit 1 fi - name: Slack Notification For Failure/Cancellation if: ${{ github.event_name == 'push' && (failure() || cancelled()) }} @@ -327,7 +327,7 @@ jobs: SLACK_FOOTER: | https://github.com/ice-blockchain/${{ github.event.repository.name }} release: - needs: [ build ] + needs: [ PR ] name: Release if: ${{ github.event_name == 'push' }} runs-on: ubuntu-latest