Skip to content

Commit

Permalink
Create pr-issue-validator-new.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhtayal72 authored Aug 13, 2024
1 parent 7aeff7c commit 43f9474
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pr-issue-validator-new.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 43f9474

Please sign in to comment.