/
action.yml
43 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
39
40
41
42
43
name: 'Pull Request Tracker'
description: 'A GitHub Action to track similar or duplicated Pull Requests.'
author: 'Mateus Abelli'
branding:
icon: 'git-pull-request'
color: 'blue'
inputs:
owner:
description: 'Name of the owner or organization'
default: ${{ github.repository_owner }}
repository:
description: 'Name of the repository'
default: ${{ github.event.repository.name }}
pr_number:
description: 'Number of the Pull Request'
default: ${{ github.event.number }}
token:
description: 'Token required to use GitHub CLI in a GitHub Actions workflow'
default: ${{ github.token }}
runs:
using: 'composite'
steps:
- uses: actions/checkout@v3
with:
repository: 'mateusabelli/pr-tracker'
ref: 'main'
- run: '. check_pulls.sh /
&& . check_conflicts.sh /
&& . comment.sh'
shell: bash
env:
OWNER: ${{ inputs.owner }}
REPOSITORY: ${{ inputs.repository }}
PR_NUMBER: ${{ inputs.pr_number }}
PR_BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
GH_TOKEN: ${{ inputs.token }}