Skip to content

Commit c6b6e9f

Browse files
committed
ci: fix adding release comments
1 parent f6ebe43 commit c6b6e9f

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.github/release-comments.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Issue Comments'
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
issue-comment:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
token: ${{ secrets.ACCESS_TOKEN }}
13+
fetch-depth: 0
14+
15+
### Semantic Release Bot comments for issues and PRs ###
16+
- name: Add release comments to issues and PRs
17+
uses: actions/github-script@v6
18+
env:
19+
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
20+
with:
21+
script: |
22+
import script from '${{ github.workspace }}/.github/createIssueCommentsForRelease.mjs';
23+
24+
await script({ github: github.rest, context })
25+

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
6565
with:
6666
script: |
67-
import script from '${{ github.workspace }}/.github/createIssueCommentsForRelease.js';
67+
import script from '${{ github.workspace }}/.github/createIssueCommentsForRelease.mjs';
6868
6969
await script({ github: github.rest, context })
7070

0 commit comments

Comments
 (0)