forked from finos/legend-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.19 KB
/
bot__new-issue-label.yml
File metadata and controls
38 lines (36 loc) · 1.19 KB
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
name: (Bot) Label New Issue
on:
issues:
types: [opened]
jobs:
label-new-issue:
name: Label New Issue
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Setup Yarn cache
uses: actions/cache@v3
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/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: yarn workspaces focus --production @finos/legend-internal-github-bot
- name: Label 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'
working-directory: ./scripts/github-bot
run: node ./labelNewIssue.js