forked from SAP/ui5-webcomponents
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 997 Bytes
/
issues-handling.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: GitHub Issues - auto-comment on issues [WIP]
on: workflow_dispatch
jobs:
test-issue-comment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }}
fetch-depth: 0
- uses: actions/[email protected]
with:
node-version: 18
cache: 'yarn'
- name: Install
run: yarn --frozen-lockfile
- name: Add release comments to issues and PRs
uses: actions/github-script@v6
env:
GH_TOKEN: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }}
with:
script: |
const { readFileSync } = require('fs');
const { URL } = require('url');
const { version } = require('./lerna.json');
console.log('Create issue comments for lerna version: ', version);
const script = require('./.github/actions/createIssueComments.cjs');
аwait script({ github: github.rest, context, core, version })