From 085ff6ac42323fdab33fd0278d9f56de820e0a5b Mon Sep 17 00:00:00 2001 From: Bela Stoyan Date: Wed, 22 May 2024 22:26:48 +0200 Subject: [PATCH] use ${{ runner.temp }} instead of mktemp (#24) --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index acf919c..460fc3a 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -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 "
Click to expand!" >> "$FINAL_REPORT"