Skip to content

Commit

Permalink
UHF-8762: Use slash
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Jan 30, 2024
1 parent b3b6e6e commit a05853f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/visual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ jobs:
run: echo "THEME_NAME=$(cat composer.json | jq -r .name | awk -F/ '{print $NF}')" >> $GITHUB_ENV

- name: Set variables
run: |
echo "THEME_FOLDER=$DRUPAL_ROOT/public/themes/contrib/$THEME_NAME" >> $GITHUB_ENV
echo "REPORT_URL=https://city-of-helsinki.github.io/drupal-hdbt/pull/${{ github.event.pull_request.number }}/html_report/" >> $GITHUB_ENV
run: echo "THEME_FOLDER=$DRUPAL_ROOT/public/themes/contrib/$THEME_NAME" >> $GITHUB_ENV

- name: Clone platform
run: |
Expand Down Expand Up @@ -115,12 +113,12 @@ jobs:
id: run-tests
if: github.ref != 'refs/heads/main'
run: |
COMMENT="Tests passed!"
if ! npm run full-test; then
COMMENT="Tests failed!"
echo "result=Tests failed!" >> $GITHUB_OUTPUT
else
echo "result=Tests passed!" >> $GITHUB_OUTPUT
fi
COMMENT+="\nYou can check the output here: https://city-of-helsinki.github.io/drupal-hdbt/pull/${{ github.event.pull_request.number }}/html_report/"
echo "comment=$COMMENT" >> $GITHUB_OUTPUT
echo "report_url=You can check the output here: https://city-of-helsinki.github.io/drupal-hdbt/pull/${{ github.event.pull_request.number }}/html_report/"" >> $GITHUB_OUTPUT
- name: Export container logs
working-directory: ${{ env.DRUPAL_ROOT }}
Expand All @@ -143,7 +141,7 @@ jobs:
number: ${{ github.event.number }}
id: deploy-preview
recreate: true
message: "${{ steps.run-tests.outputs.comment }}"
message: "${{join(steps.run-tests.outputs.*, '\')}}"

- name: Upload container logs
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit a05853f

Please sign in to comment.