Skip to content

Commit

Permalink
only run ui tests when it's not the weblate branch
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpearce-digital committed Oct 3, 2023
1 parent 50f6260 commit fcc9719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 140 deletions.
133 changes: 0 additions & 133 deletions .github/workflows/weblate_pr.yml

This file was deleted.

9 changes: 2 additions & 7 deletions .github/workflows/workflow_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ on:
pull_request:
branches:
- 'main'
push:
# Sequence of patterns matched against refs/heads
branches:
- '!main'
- '!MLPAB-1419-use-a-single-persistent-environment-for-weblate-changes-optimise-workflow'
- '!weblate-pr'

permissions:
id-token: write
Expand Down Expand Up @@ -95,7 +89,8 @@ jobs:

ui_tests_image:
name: Run Cypress UI Tests On Images
if: needs.detect_changes.outputs.changes_detected == 'true' &&
if: ${{ github.head_ref != 'weblate_pr' }} &&
needs.detect_changes.outputs.changes_detected == 'true' &&
(needs.docker_build_scan_push.result == 'success' || needs.docker_build_scan_push.result == 'skipped')
uses: ./.github/workflows/ui_test_job.yml
needs: [docker_build_scan_push, create_tags]
Expand Down

0 comments on commit fcc9719

Please sign in to comment.