-
Notifications
You must be signed in to change notification settings - Fork 3
27 lines (24 loc) · 1.15 KB
/
pr-issue-validator-new.yaml
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
- name: Find linked issues
id: find-linked-issues
uses: Ismoh-Games/find-linked-issues@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
pull-request-number: ${{ github.event.pull_request.number }}
pull-request-body: ${{ github.event.pull_request.body }}
copy-issues-labels: true # optional
include-closed-issues: true # optional
# Use the output from the `find-linked-issues` step
- name: Use the output
run: |
echo "is-pull-request-linked-to-issues: ${{ steps.find-linked-issues.outputs.is-pull-request-linked-to-issues }}"
echo "linked-issues: ${{ steps.find-linked-issues.outputs.linked-issues }}"
echo "pull-request-labels: ${{ steps.find-linked-issues.outputs.pull-request-labels }}"
- name: Conditional step
if: ${{ steps.find-linked-issues.outputs.is-pull-request-linked-to-issues == 'True' }}
run: |
echo "Pull request is linked to issues"
- name: Another conditional step
if: ${{ steps.find-linked-issues.outputs.is-pull-request-linked-to-issues == 'False' }}
run: |
exit 1