Skip to content

Commit

Permalink
Update release skip job logic (#5865)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 committed Jun 26, 2024
1 parent 839f16d commit 106ce37
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.NGINX_PAT }}

release-oss:
if: ${{ ! contains(inputs.skip_step, 'release-oss') }}
if: ${{ ! cancelled() && ! failure() && ! contains(inputs.skip_step, 'release-oss') }}
name: Release Docker OSS
needs: [variables]
uses: ./.github/workflows/oss-release.yml
Expand All @@ -134,7 +134,7 @@ jobs:
secrets: inherit

release-plus:
if: ${{ ! contains(inputs.skip_step, 'release-plus') }}
if: ${{ ! cancelled() && ! failure() && ! contains(inputs.skip_step, 'release-plus') }}
name: Release Docker Plus
needs: [variables]
uses: ./.github/workflows/plus-release.yml
Expand All @@ -154,7 +154,7 @@ jobs:
secrets: inherit

publish-helm-chart:
if: ${{ ! inputs.dry_run && ! contains(inputs.skip_step, 'publish-helm-chart') }}
if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'publish-helm-chart') }}
name: Publish Helm Chart
uses: ./.github/workflows/publish-helm.yml
with:
Expand All @@ -168,7 +168,7 @@ jobs:
secrets: inherit

certify-openshift-images:
if: ${{ ! inputs.dry_run && ! contains(inputs.skip_step, 'certify-openshift-images') }}
if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'certify-openshift-images') }}
name: Certify OpenShift UBI images
runs-on: ubuntu-22.04
needs: [release-oss]
Expand All @@ -187,7 +187,7 @@ jobs:
pyxis_token: ${{ secrets.PYXIS_API_TOKEN }}

operator:
if: ${{ ! inputs.dry_run && ! contains(inputs.skip_step, 'operator') && !contains(inputs.skip_step, 'publish-helm-chart') }}
if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'operator') && !contains(inputs.skip_step, 'publish-helm-chart') }}
name: Trigger PR for Operator
runs-on: ubuntu-22.04
needs: [publish-helm-chart]
Expand All @@ -208,7 +208,7 @@ jobs:
})
gcp-marketplace:
if: ${{ ! inputs.dry_run && ! contains(inputs.skip_step, 'gcp-marketplace') }}
if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'gcp-marketplace') }}
name: Trigger PR for GCP Marketplace
runs-on: ubuntu-22.04
needs: [publish-helm-chart]
Expand All @@ -229,7 +229,7 @@ jobs:
})
azure-marketplace:
if: ${{ ! inputs.dry_run && ! contains(inputs.skip_step, 'azure-marketplace') }}
if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'azure-marketplace') }}
name: Trigger CNAB Build for Azure Marketplace
runs-on: ubuntu-22.04
needs: [publish-helm-chart]
Expand All @@ -252,7 +252,7 @@ jobs:
})
aws-marketplace:
if: ${{ ! inputs.dry_run && ! contains(inputs.skip_step, 'aws-marketplace') }}
if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'aws-marketplace') }}
name: Publish to AWS Marketplace
runs-on: ubuntu-22.04
needs: [release-plus]
Expand Down Expand Up @@ -334,7 +334,7 @@ jobs:
if: ${{ needs.variables.outputs.binary_cache_sign_hit != 'true' }}

azure-upload:
if: ${{ ! contains(inputs.skip_step, 'azure-upload') }}
if: ${{ ! cancelled() && ! failure() && ! contains(inputs.skip_step, 'azure-upload') }}
name: Upload packages to Azure
runs-on: ubuntu-22.04
needs: [variables, binaries]
Expand Down Expand Up @@ -377,7 +377,7 @@ jobs:
done
github-release:
if: ${{ ! contains(inputs.skip_step, 'github-release') }}
if: ${{ ! cancelled() && ! failure() && ! contains(inputs.skip_step, 'github-release') }}
name: Publish release to GitHub
runs-on: ubuntu-22.04
needs: [variables, binaries, release-oss, release-plus, azure-upload]
Expand Down Expand Up @@ -482,7 +482,7 @@ jobs:
if: ${{ ! inputs.dry_run }}

release-image-notification:
if: ${{ ! inputs.dry_run && ! contains(inputs.skip_step, 'release-image-notification') }}
if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'release-image-notification') }}
name: Notify Slack channels about image release
runs-on: ubuntu-22.04
needs: [variables, binaries, release-oss, release-plus]
Expand Down

0 comments on commit 106ce37

Please sign in to comment.