-
Notifications
You must be signed in to change notification settings - Fork 2.1k
50 lines (45 loc) · 1.3 KB
/
check_application_document.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Check application document
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
jobs:
get_filename:
if: contains(github.event.pull_request.body, 'Project Abstract')
runs-on: ubuntu-latest
outputs:
filename: ${{ steps.files.outputs.added }}
steps:
- name: Get application filename # We assume there's only one
id: 'files'
uses: Ana06/[email protected]
with:
filter: 'applications/*.md'
format: 'csv'
add_label:
needs: get_filename
if: needs.get_filename.outputs.filename
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: add admin-review label
uses: actions-ecosystem/action-add-labels@v1
with:
labels: admin-review
github_token: ${{ secrets.GITHUB_TOKEN }}
parse_document:
needs: get_filename
if: needs.get_filename.outputs.filename
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Parse application file
id: grant_parser
uses: w3f/parse-grant-application-action@master
with:
path: "${{ github.workspace }}/${{ needs.get_filename.outputs.filename }}"