File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change 1313 permissions :
1414 issues : write
1515 contents : read
16- env :
17- ISSUE_EXISTS : false
1816 steps :
19- - name : Check if Issue Already Exists
20- id : ISSUE_EXISTS
21- run : |
22- EXISTS=$(curl -L \
23- -H "Accept: application/vnd.github+json" \
24- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
25- -H "X-GitHub-Api-Version: 2022-11-28" \
26- "https://api.github.com/repos/${{ github.repository }}/issues?state=open" | jq '.[] | select(.title == "Release pending!")')
27- if [ -z "$EXISTS" ]; then
28- echo "ISSUE_EXISTS=false" >> $GITHUB_ENV
29- else
30- echo "ISSUE_EXISTS=true" >> $GITHUB_ENV
31- fi
3217 - name : Github Action Notify Release
33- if : env.ISSUE_EXISTS == false
3418 uses :
nearform-actions/[email protected] 19+ with :
20+ notify-after : 1m
You can’t perform that action at this time.
0 commit comments