-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
38 lines (36 loc) · 1.1 KB
/
action.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
name: "Invite to organisation"
description: "Invite contributors to organisation"
inputs:
organisation:
description: "Organisation name"
required: true
team-slug:
description: "Team slug"
required: true
github-token:
description: "Github Token"
required: true
comment:
description: "Comment message"
required: true
runs:
using: "composite"
steps:
- name: Get PR info
id: get-info
uses: strawberry-graphql/get-pr-info-action@v4
env:
ACCESS_TOKEN: ${{ inputs.github-token }}
- uses: actions/github-script@v4
env:
ORGANISATION: ${{ inputs.organisation }}
TEAM_SLUG: ${{ inputs.team-slug }}
USERNAME: ${{ steps.get-info.outputs.contributor-username }}
REPOSITORY_NAME: ${{ steps.get-info.outputs.repository-name }}
PR_NUMBER: ${{ steps.get-info.outputs.pr-number }}
COMMENT: ${{ inputs.comment }}
with:
github-token: ${{ inputs.github-token }}
script: |
const script = require('${{ github.action_path }}/main.js')
await script({github, context, core})