-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathaction.yml
More file actions
32 lines (29 loc) · 1018 Bytes
/
action.yml
File metadata and controls
32 lines (29 loc) · 1018 Bytes
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: 'Validate PR'
description: 'Validates non-maintainer PRs against contribution guidelines'
author: 'Sentry'
inputs:
app-id:
description: 'GitHub App ID for the SDK Maintainer Bot'
required: true
private-key:
description: 'GitHub App private key for the SDK Maintainer Bot'
required: true
runs:
using: 'composite'
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v2
with:
app-id: ${{ inputs.app-id }}
private-key: ${{ inputs.private-key }}
- name: Validate PR
id: validate
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
APP_SLUG: ${{ steps.app-token.outputs.app-slug }}
with:
github-token: ${{ steps.app-token.outputs.token }}
script: |
const script = require('${{ github.action_path }}/scripts/validate-pr.js');
await script({ github, context, core });