-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
32 lines (30 loc) · 1.06 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
name: "Get PR info Action"
description: "Get information about a pull request either when the PR is merged or when it was sent"
outputs:
pr-number:
description: "PR number"
value: ${{ steps.get-info.outputs.pr-number }}
has-pr:
description: "True if there's a PR for this commit"
value: ${{ steps.get-info.outputs.has-pr }}
contributor-name:
description: "Contributor name"
value: ${{ steps.get-info.outputs.contributor-name }}
contributor-username:
description: "Contributor username"
value: ${{ steps.get-info.outputs.contributor-username }}
contributor-twitter-username:
description: "Contributor twitter username"
value: ${{ steps.get-info.outputs.contributor-twitter-username }}
repository-name:
description: "Repository name"
value: ${{ steps.get-info.outputs.repository-name }}
runs:
using: "composite"
steps:
- uses: actions/github-script@v4
id: get-info
with:
script: |
const script = require('${{ github.action_path }}/main.js')
await script({github, context, core})