Skip to content

Commit

Permalink
Tweak markdown, fix artifact_name
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Nov 14, 2023
1 parent 399729c commit c14f357
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/create-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,17 @@ jobs:

- uses: actions/upload-artifact@v3
with:
name: ${{ env.NPM_PACKAGE_NAME }}
name: ${{ env.ARTIFACT_NAME }}
path: "*.tgz"

- name: Add comment to PR
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const ARTIFACT_URL="${{ env.ARTIFACT_URL }}";
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Hey there! I just built a new temporary npm package based on ${{ github.event.pull_request.head.sha }}. You can download it [here](${ARTIFACT_URL}) or install it by running the following command: \n\`\`\`bash\nnpm install ${ARTIFACT_URL}\n\`\`\``
body: "Hey there! I just built a new temporary npm package based on ${{ github.event.pull_request.head.sha }}. You can download it [here](${{ env.ARTIFACT_URL }}) or install it by running the following command: \n```bash\nnpm install ${{ env.ARTIFACT_URL }}\n```";
});

0 comments on commit c14f357

Please sign in to comment.