-
-
Notifications
You must be signed in to change notification settings - Fork 73
32 lines (29 loc) · 1.03 KB
/
Copy pathupdate-draft-pr.yml
File metadata and controls
32 lines (29 loc) · 1.03 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
name: update-draft-pr
on:
pull_request:
types: [opened, edited, synchronize]
permissions:
contents: write
pull-requests: write
jobs:
update-draft-pr:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && (github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'OWNER' || github.event.pull_request.author_association == 'COLLABORATOR')
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: 18
- name: Install
run: yarn install
working-directory: actions/update-draft-pr
- name: Run
run: yarn start
working-directory: actions/update-draft-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_EVENT: ${{ toJson(github.event) }}