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

test skipping sce-validator #158

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
22 changes: 22 additions & 0 deletions .github/workflows/build-and-push-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,34 @@ jobs:
outputs:
image_version: ${{ steps.subscriber_meta.outputs.version }}

env:
SKIP_SCE_VALIDATION: false

steps:
- name: Checkout
uses: actions/checkout@v4

# - name: Check if SCE validator step should be skipped
# run: echo "SKIP_SCE_VALIDATION=$(git log -1 --pretty=%B | grep -q '\[skip-sce-validation\]' && echo true || echo false)" >> $GITHUB_ENV

# - name: SCE validator
# if: env.SKIP_SCE_VALIDATION == 'false'
# uses: urbansportsclub/usc-github-actions/SCE-validator@main

- name: SCE validator
id: sce_validator
uses: urbansportsclub/usc-github-actions/SCE-validator@main
continue-on-error: true

- name: Request manual approval for emergency deployment
if: steps.sce_validator.outcome == 'failure'
uses: trstringer/manual-approval@v1
with:
secret: ${{ secrets.GITHUB_TOKEN }}
approvers: jelenazivovic,GersonTrj
minimum-approvals: 1
issue-title: "Emergency Deployment Approval"
issue-body: "An emergency deployment has been requested. Please review and approve."

- name: Docker subscriber meta
id: subscriber_meta
Expand Down