Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release skip job logic #5865

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,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 @@ -136,7 +136,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 @@ -156,7 +156,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 @@ -170,7 +170,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 @@ -189,7 +189,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 @@ -210,7 +210,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 @@ -231,7 +231,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 @@ -254,7 +254,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 @@ -341,7 +341,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 @@ -384,7 +384,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 @@ -483,7 +483,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