Further debug.
This commit is contained in:
+4
-2
@@ -60,11 +60,12 @@ runs:
|
||||
id: check-opened-pr-step
|
||||
continue-on-error: true
|
||||
run: |
|
||||
echo "Checking for PR..."
|
||||
pr_exists=$(tea pr list \
|
||||
--repo ${{ github.repository }} \
|
||||
--state open \
|
||||
--fields head \
|
||||
--output simple \
|
||||
--output simple --debug \
|
||||
| egrep '${{ github.ref_name }}' | wc -l)
|
||||
|
||||
echo "exists=$pr_exists" >> $GITHUB_OUTPUT
|
||||
@@ -79,10 +80,11 @@ runs:
|
||||
shell: bash
|
||||
if: steps.check-opened-pr-step.outputs.exists == '0'
|
||||
run: |
|
||||
echo "PR Created..."
|
||||
PR_TITLE=$(git log -n 1 --format=%s)
|
||||
PR_DESCRIP=$(git log -n 1 --format=%b)
|
||||
tea pr c -r ${{ github.repository }} \
|
||||
-t "${PR_TITLE}" \
|
||||
-d "${PR_DESCRIP}" \
|
||||
-a ${{ github.actor }} \
|
||||
-L ${{ inputs.pr-label }}
|
||||
-L ${{ inputs.pr-label }} --debug
|
||||
|
||||
Reference in New Issue
Block a user