Skip to content

Commit

Permalink
use output
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed May 29, 2024
1 parent df377d3 commit ab5dd70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/actions/upload-coverage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ runs:
mv .coverage ".coverage.-$$-$RANDOM"
fi
- name: Handle artifact name
id: artifact-name
shell: bash
run: |
export name=${{ inputs.artifact_name }}
if [ -z "$name" ]; then
export name="coverage-$RANDOM"
fi
echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> $GITHUB_ENV
echo "artifact_name=$ARTIFACT_NAME" >> "$GITHUB_OUTPUT"
- name: Upload coverage data
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT_NAME }}
name: ${{ steps.artifact-name.outputs.artifact_name }}
path: ".coverage.*"
if-no-files-found: ignore

0 comments on commit ab5dd70

Please sign in to comment.