forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (56 loc) · 1.85 KB
/
issue-sync.yml
File metadata and controls
64 lines (56 loc) · 1.85 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Issue Sync
on: [issues, issue_comment]
jobs:
sync-issue:
name: Sync Issue with Project Board
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
# Cache node_modules
- name: Cache node_modules
uses: actions/cache@v4
id: cache-modules
with:
path: |
tools/@aws-cdk/project-sync/node_modules
node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-modules-
- name: Install dependencies
if: steps.cache-modules.outputs.cache-hit != 'true'
run: |
cd tools/@aws-cdk/project-sync
yarn install --frozen-lockfile
# Cache build output
- name: Cache build output
uses: actions/cache@v4
id: cache-build
with:
path: |
tools/@aws-cdk/project-sync/lib/*.js
tools/@aws-cdk/project-sync/bin/*.js
key: ${{ runner.os }}-build-${{ hashFiles('tools/@aws-cdk/project-sync/lib', 'tools/@aws-cdk/project-sync/bin') }}
restore-keys: |
${{ runner.os }}-build-
- name: Build project-sync
if: steps.cache-build.outputs.cache-hit != 'true'
run: |
cd tools/@aws-cdk/project-sync
yarn build
- name: Run issue-sync
env:
GITHUB_TOKEN: ${{ secrets.PROJECT_SYNC_GITHUB_TOKEN }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
REPOSITORY: ${{ github.repository }}
PROJECT_NUMBER: ${{ vars.PROJECT_NUMBER || 302 }}
run: |
cd tools/@aws-cdk/project-sync
node bin/issue-sync.js