File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 38
38
name : extension-${{ github.sha }}
39
39
path : workspace/extension/build/svelte-devtools.zip
40
40
41
+ - if : github.event_name == 'pull_request'
42
+ env :
43
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
+ PR_NUMBER : ${{ github.event.number }}
45
+ WORKFLOW : ${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts
46
+ run : |
47
+ url=https://github.com/$WORKFLOW/$(gh api repos/$WORKFLOW --jq '.artifacts[0].id')
48
+ commented=$(gh pr view $PR_NUMBER --json comments --jq '.comments[].author.login | select(. | contains("github-actions"))')
49
+ body="Try the changes in this PR by [side-loading the built extension]($url). :rocket:"
50
+
51
+ if [ -z "$commented" ]; then
52
+ gh pr comment $PR_NUMBER --body "$body"
53
+ else
54
+ gh pr comment $PR_NUMBER --edit-last --body "$body"
55
+ fi
56
+
41
57
publish :
42
58
runs-on : ubuntu-latest
43
59
needs : [manifest, bundle]
You can’t perform that action at this time.
0 commit comments