-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 1.1 KB
/
pr_summary.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
name: PR Summary Check
on:
pull_request:
types: [opened, synchronize, edited]
jobs:
checkSummary:
runs-on: ubuntu-latest
outputs:
checkbox: ${{ steps.checkbox.outputs.data }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: ./.github/actions/typescript
id: checkbox
with:
filePath: './.github/build/pr_summary'
function: 'checkSummary'
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
env:
prEvent: ${{ toJson(github.event) }}
PR_NUMBER: ${{ github.event.number }}
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
CHECK: ${{ needs.checkSummary.outputs.checkbox }}
SHA: ${{ github.event.pull_request.head.sha }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
- run: echo ${{ steps.checkbox.outputs.data }}