Skip to content

Commit

Permalink
Use bash
Browse files Browse the repository at this point in the history
  • Loading branch information
carltongibson committed Feb 24, 2024
1 parent 50d9381 commit 868e07f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,14 @@ jobs:
working-directory: ./docs
# Refs #22: Upload an artifact containing the built docs.
- name: Upload docs
id: artifact-upload-step
uses: actions/upload-artifact@v2
with:
# Use a name from the commit hash to avoid collisions.
name: docs-${{ github.sha }}
path: docs/build/json
- name: Get artifact details
uses: actions/github-script@v5
with:
script: |
const artifactName = "${{ steps.upload-docs.outputs.name }}"
const artifactSize = "${{ steps.upload-docs.outputs.size }}"
const artifactDownloadUrl = "${{ steps.upload-docs.outputs.artifact-url }}"
console.log(`Artifact Name: ${artifactName}`)
console.log(`Artifact Size: ${artifactSize}`)
console.log(`Artifact Download URL: ${artifactDownloadUrl}`)
run:
echo 'Artifact ID is ${{ steps.artifact-upload-step.outputs.artifact-id }}' >> $GITHUB_STEP_SUMMARY
echo 'Artifact Name is ${{ steps.artifact-upload-step.outputs.artifact-name }}' >> $GITHUB_STEP_SUMMARY
echo 'Artifact URL is ${{ steps.artifact-upload-step.outputs.artifact-url }}' >> $GITHUB_STEP_SUMMARY

0 comments on commit 868e07f

Please sign in to comment.