Skip to content

Commit

Permalink
use ${{ runner.temp }} instead of mktemp (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbe7a authored May 22, 2024
1 parent 43aa9b2 commit 085ff6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ runs:
- name: Run pytest
id: pytest
run: |
REPORT="$(mktemp)"
REPORT="${{ runner.temp }}/raw_out"
echo "report-path=$REPORT" >> $GITHUB_OUTPUT
${{ inputs.custom-pytest }}${{ inputs.verbose == 'true' && ' -v' || '' }}${{ inputs.job-summary == 'true' && ' --md=$REPORT' || '' }}${{ inputs.emoji == 'true' && ' --emoji' || '' }}${{ inputs.custom-arguments != '' && ' ' || '' }}${{ inputs.custom-arguments }}
shell: bash -el {0} # use login shell to source .bashrc for environments
Expand All @@ -48,7 +48,7 @@ runs:
if: always() && inputs.job-summary == 'true'
run: |
echo "::group::..."
FINAL_REPORT="$(mktemp)"
FINAL_REPORT="${{ runner.temp }}/report_out"
echo "# ${{ inputs.report-title }}" > "$FINAL_REPORT"
if [ ${{ inputs.click-to-expand }} = true ]; then
echo "<details><summary>Click to expand!</summary>" >> "$FINAL_REPORT"
Expand Down

0 comments on commit 085ff6a

Please sign in to comment.