Skip to content

Commit

Permalink
UHF-10374: Added check for 'install-drupal-from-scratch' label.
Browse files Browse the repository at this point in the history
  • Loading branch information
khalima committed Feb 4, 2025
1 parent 4e1771e commit 3883dfc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/visual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ jobs:
# Install the site from existing dump if the cache restoration was successful.
- name: Install Drupal from existing dump
working-directory: ${{ env.DRUPAL_ROOT }}
if: steps.drupal-cache.outputs.cache-hit == 'true'
if: |
!contains(github.event.pull_request.labels.*.name, 'install-drupal-from-scratch') &&
steps.drupal-cache.outputs.cache-hit == 'true'
run: |
docker compose exec app bash -c "mysql --user=drupal --password=drupal --database=drupal --host=db --port=3306 -A < /app/public/sites/default/files/latest.sql"
docker compose exec app bash -c "drush updb -y && drush cr"
Expand All @@ -100,7 +102,9 @@ jobs:
# installation process and install Drupal using that dump from now on.
- name: Install Drupal from scratch
working-directory: ${{ env.DRUPAL_ROOT }}
if: steps.drupal-cache.outputs.cache-hit != 'true'
if: |
contains(github.event.pull_request.labels.*.name, 'install-drupal-from-scratch') ||
steps.drupal-cache.outputs.cache-hit != 'true'
run: |
docker compose exec app bash -c "drush si minimal -y"
docker compose exec app bash -c "drush en redis -y"
Expand Down Expand Up @@ -131,7 +135,7 @@ jobs:
- name: Evaluate if we should re-create reference images
id: evaluate-reference-images
if: |
contains( github.event.pull_request.labels.*.name, 'recreate-reference-images') ||
contains(github.event.pull_request.labels.*.name, 'recreate-reference-images') ||
hashFiles('backstop/full/bitmaps_reference/') != '' ||
github.ref == 'refs/heads/main'
run: echo "generate-references=true" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 3883dfc

Please sign in to comment.