Skip to content

Commit

Permalink
Fixes for scheduled e2e (#5532)
Browse files Browse the repository at this point in the history
* fix(actions): Disable deployment only if e2e fails on next or prod

* fix(actions): Disable all affected release workflows on e2e failure
  • Loading branch information
SokratisVidros authored May 9, 2024
1 parent 4524b7b commit 5b63ce5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/scheduled_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ permissions:
actions: write

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
test_web:
Expand Down Expand Up @@ -49,7 +49,8 @@ jobs:

release_decision:
name: Release Decision
if: always()
# TODO: Remove the conditional for next when we fully switch to main/prod branching model
if: github.ref_name == 'next' || github.ref_name == 'prod' || github.ref_name == 'main'
runs-on: ubuntu-latest
needs:
- test_widget
Expand All @@ -64,9 +65,13 @@ jobs:
widget_status=$(echo "$needs_json" | jq -r '.test_widget.result')
api_status=$(echo "$needs_json" | jq -r '.test_unit_api.result')
workflows_map=$(cat << EOF
prod-deploy-embed.yml: $widget_status
prod-deploy-widget.yml: $widget_status
prod-deploy-web.yml: $web_status
prod-deploy-api.yml: $api_status
prod-deploy-webhook.yml: $api_status
prod-deploy-worker.yml: $api_status
prod-deploy-ws.yml: $api_status
EOF
)
while IFS= read -r line; do
Expand Down

0 comments on commit 5b63ce5

Please sign in to comment.