File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 17
17
with :
18
18
fetch-depth : 0
19
19
20
+ - name : ⬇️ Checkout PR
21
+ run : |
22
+ git fetch origin pull/${{ github.event.issue.number }}/head:pr-find-commit
23
+ git checkout pr-find-commit
24
+
20
25
- name : Install pnpm
21
26
uses : pnpm/action-setup@v3
22
27
with :
@@ -50,13 +55,15 @@ jobs:
50
55
const { issue: { number: issue_number }, repo: { owner, repo }, payload } = context;
51
56
const { name: packageName, version } = require(`${process.env.GITHUB_WORKSPACE}/package.json`);
52
57
58
+ const body = [
59
+ `npm package published to pre tag.`,
60
+ `\`\`\`bash\nnpm install ${packageName}@pre\n\`\`\``
61
+ `\`\`\`bash\nnpm install ${packageName}@${version}\n\`\`\``
62
+ ].join('\n\n');
63
+
53
64
await github.rest.issues.updateComment({
54
65
owner,
55
66
repo,
56
67
comment_id: payload.comment.id,
57
- body: [
58
- `npm package published to pre tag.`,
59
- `\`\`\`bash\nnpm install ${packageName}@pre\n\`\`\``
60
- `\`\`\`bash\nnpm install ${packageName}@${version}\n\`\`\``
61
- ].join('\n\n'),
68
+ body,
62
69
});
You can’t perform that action at this time.
0 commit comments