forked from finos/legend-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.25 KB
/
bot__onboard-new-issue.yml
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
33
34
35
36
37
38
39
name: (Bot) Onboard New Issue
on:
issues:
types: [opened]
jobs:
onboard-new-issue:
name: Onboard New Issue
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Get Yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: Setup Yarn cache
uses: actions/[email protected]
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 21
- name: Install dependencies
run: yarn workspaces focus --production @finos/legend-internal-github-bot
- name: Onboard new issue
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORGANIZATION_READ_TOKEN: ${{ secrets.READ_ORG_TOKEN }}
ORGANIZATION_NAME: finos
TEAM_NAME: legend-contributors
TEAM_LABEL: 'Studio Core Team'
FALLBACK_MILESTONE: 'Backlog'
working-directory: ./scripts/github-bot
run: node ./onboardNewIssue.js