Skip to content

Commit

Permalink
chore(record): use default path for recording
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Sep 22, 2023
1 parent 404c46c commit 724236b
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ outputs:
issues:
description: "The amount of issues found on the page"
value: ${{ steps.a11ywatch-results-generator.outputs.issues }}
recording_dir:
description: "The directory that holds recordings of audits. Only enabled when inputs.RECORD is set."
value: ${{ steps.a11ywatch-recordings-directory.outputs.recording_dir }}
# recording_dir:
# description: "The directory that holds recordings of audits. Only enabled when inputs.RECORD is set."
# value: ${{ steps.a11ywatch-recordings-directory.outputs.recording_dir }}
runs:
using: composite
steps:
Expand Down Expand Up @@ -305,17 +305,18 @@ runs:
message: "fix(accessibility): add recommendations from scan"
committer_name: GitHub Actions

- name: Get recording directory
id: a11ywatch-recordings-directory
if: ${{ inputs.RECORD && inputs.RECORD != 'false' && failure() || success() }}
shell: bash
run: echo "recording_dir=$( echo "$(a11ywatch --find-tmp-dir)""${{inputs.RECORD}}" )" >> $GITHUB_OUTPUT
# - name: Get recording directory
# id: a11ywatch-recordings-directory
# if: ${{ inputs.RECORD && inputs.RECORD != 'false' && failure() || success() }}
# shell: bash
# run: echo "recording_dir=$( echo "$(a11ywatch --find-tmp-dir)""/${{inputs.RECORD}}" )" >> $GITHUB_OUTPUT

- uses: actions/upload-artifact@v3
if: ${{ inputs.RECORD && inputs.RECORD != 'false' && failure() || success() }}
with:
name: Recordings
path: ${{ steps.a11ywatch-recordings-directory.outputs.recording_dir }}
# path: ${{ steps.a11ywatch-recordings-directory.outputs.recording_dir }}
path: ${{ inputs.RECORD }}

- name: Stop A11yWatch Service
if: ${{ !inputs.EXTERNAL }}
Expand Down

0 comments on commit 724236b

Please sign in to comment.