Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e5950a commit 0dac7f2Copy full SHA for 0dac7f2
.github/workflows/create-pr-on-snippet.yml
@@ -17,6 +17,20 @@ jobs:
17
with:
18
template-path: .github/ISSUE_TEMPLATE/new-snippet.yml # optional but recommended
19
- run: cat ${HOME}/issue-parser-result.json
20
+
21
22
+ - name: Check if issue is from new-snippet template
23
+ id: check-template
24
+ run: |
25
+ ISSUE_BODY=$(cat $GITHUB_EVENT_PATH | jq -r .issue.body)
26
+ echo $ISSUE_BODY
27
+ if [[ $ISSUE_BODY == *"This issue was created using the new-snippet template."* ]]; then
28
+ echo "Match found"
29
+ echo "::set-output name=template_match::true"
30
+ else
31
+ echo "No match found"
32
+ echo "::set-output name=template_match::false"
33
+ fi
34
35
- name: Check and write snippet to PR
36
uses: actions/github-script@v6
0 commit comments